Building with PM+ fails if #pragma section command is executed.
Findpricetag Logo

Building with PM+ fails if #pragma section command is executed.

Q1
The following source is described to change the section of a variable but the C compiler does not generate an object.
Therefore, building with PM+ fails. What should be done?
#pragma section @@DATA DATA1
int b;
#pragma section @@DATA @@DATA
A1
If the #pragma section command is executed after describing the body text in C, an object module file is not created but an assembler source file is created.
Consequently, building fails.
Specify the -SA or -A option that outputs an assembler source file when setting a compiler option.
PM+ starts up the assembler following the compiler, and an object is generated.

PM+

Complier Options -> Output -> click create assembler source module