Thanks
Yale Li
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Yale,
Do you mean to generate the .out file without the synbol table?
Best Regards
Siddharth
Hi Siddharth,
Thanks for your support!
Yes. The customer just want address and correspondence machine code, similar to hex file, but .out format.
Thanks & Regards
Yale Li
Yale,
You can try compiling using the " --symdebug:none" option. This will create the .out file without the symbol table.
It is not similar to the hex file since it will still have a file header and section headers . Each section header will point to the corresponding machine code.
Best Regards
Siddharth
Hi Siddharth,
It has been verified by the customer that the out file (hereinafter referred to as the new out file) generated when compiling with "--symdebug:none" has become smaller, from 542KB to 359KB. However, the problem raised by the customer is still not resolved. The customer can still get the assembler by calling the new out file with dis2000.exe. And nm2000 calls the new out file can also display the variables in the out file.
Customers feel that this is not conducive to the confidentiality of the code, because the out file must be issued for programing during production. So please help provide ideas to solve this problem.
Thanks & Regards
Yale Li
The result obtained by dis2000.exe calling the new out file:

The result obtained by nm2000.exe calling the new out file:

Yale,
I think the only other approach is to generate a hex file from the .out file.
Will forward your query to the compiler team to see if they have any suggestions.
Best Regards
Siddharth
An alternative to building with --symdebug:none is to use the strip utility strip2000. To learn about it, please search the C28x assembly tools manual for the sub-chapter titled Invoking the Strip Utility. It remains possible to disassemble a stripped executable. But it only shows a stream of instructions, without any symbol names.
Converting to a hex file makes disassembly more difficult. I'm not aware of any utility which can disassemble a hex file. Creating that utility is hard, but not impossible. I'm not aware of any method which makes it impossible to disassemble.
Thanks and regards,
-George
Hi George,
Thanks for your answer! After using strip2000.exe, the variable information in the out file was successfully stripped. It resolved the issue.
And thanks for Siddharth again! Very appreciate for all of you guys' help!
Thanks & Regards
Yale Li