Files encryption

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,608件の閲覧回数
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,528件の閲覧回数
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,574件の閲覧回数
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,565件の閲覧回数
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,529件の閲覧回数
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,530件の閲覧回数
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 件の賞賛
返信