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.

C6000 CGT --gen_func_subsections



Hi Champs,

is the --gen_func_subsections Compiler option also effective on Libraries written in assembly?

Let's assume I have an .asm file containing multiple functions the forms a single library. If I'm calling a single function out of that library I'm finding all of the functions in the .out file although I'm using the --gen_func_subsections option. Is that expected?

How can I avoid that all functions are included? Do I really need to manually split into individual .asm files per function?

Thanks and kind regards,

one and zero

  • The --gen_func_subsections option only works on C/C++ source files. You can accomplish the same thing in assembly by placing each function in a separate section. You can do this in a single assembly file like this:

     .sect ".text:foo"
    foo:

     .sect ".text:bar"
    bar: