Files encryption

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Files encryption

跳至解决方案
1,618 次查看
fanziyu
Contributor IV

S32DS for Arm 2018.R1

KEAZ128

Some C files and H files in the project cannot be exposed to the client, the client needs to modify some other C files,and then compile to generate the HEX file. Is there any way?

Can confidential C files be replaced by O files for compilation?How to do this?

Thanks

0 项奖励
回复
1 解答
1,538 次查看
stanish
NXP Employee
NXP Employee

Hi,

Alternatively, you can link separate object file (.o) as an other object file (e.g. place the affected object files into a custom folder e.g. <Project home folder>\obj\) :

stanish_0-1708936823767.png

I'd also suggest you to disable debug information generation specifically for these source files. This will make them even harder to understand since symbol information is extracted from the compiled object file.

To do so just right click on specific source file and go to properties (main.c in the example):

stanish_1-1708937237454.png

Once the change is confirmed the file decorator appears (little black pin) indicating that the source file has a different to default build options :

stanish_2-1708937433021.png

 

Hope it helps.

Stan

 

 

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,584 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

in my opinion is the best method create a library archive from sources which you don't like to share and link it into your project. 

 

jiri_kral_0-1708683673290.png

 

0 项奖励
回复
1,575 次查看
fanziyu
Contributor IV

It wasn't planned out this way, and the various global variables were too interleaved for this to work. Is there any other way?

0 项奖励
回复
1,539 次查看
stanish
NXP Employee
NXP Employee

Hi,

Alternatively, you can link separate object file (.o) as an other object file (e.g. place the affected object files into a custom folder e.g. <Project home folder>\obj\) :

stanish_0-1708936823767.png

I'd also suggest you to disable debug information generation specifically for these source files. This will make them even harder to understand since symbol information is extracted from the compiled object file.

To do so just right click on specific source file and go to properties (main.c in the example):

stanish_1-1708937237454.png

Once the change is confirmed the file decorator appears (little black pin) indicating that the source file has a different to default build options :

stanish_2-1708937433021.png

 

Hope it helps.

Stan

 

 

0 项奖励
回复
1,540 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

I'm afraid that there is no other option. Library archive is just set of object files (.o) like was your first idea. If you already have .o files - you can simply create library archive by ar tool - https://www.delorie.com/djgpp/v2faq/faq8_22.html 

0 项奖励
回复