Tool/software: TI C/C++ Compiler
Hello,
Is it possible to convert a PRU C source file to assembler source?
Is it possible when we put “--asm_listing” option?
I’m reading SPRUHV7C.pdf, page-30
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.
Tool/software: TI C/C++ Compiler
Hello,
Is it possible to convert a PRU C source file to assembler source?
Is it possible when we put “--asm_listing” option?
I’m reading SPRUHV7C.pdf, page-30
Hideaki Nambu said:Is it possible to convert a PRU C source file to assembler source?
Not exactly. It is possible to keep the assembly code generated by the compiler, and then adopt that as the starting point for your assembly source. All that said, the compiler is not designed for this purpose.
There are a few different options which you might use. I recommend you use --src_interlist. This option causes the compiler to keep the automatically generated assembly code. It appears in a file with same name the source file, but the extension changed to .asm. It has comments in it which help you understand the code.
Thanks and regards,
-George