diff options
| author | Xavier ASUS <xavi92psx@gmail.com> | 2019-10-21 00:22:00 +0200 |
|---|---|---|
| committer | Xavier ASUS <xavi92psx@gmail.com> | 2019-10-21 00:22:00 +0200 |
| commit | 3fcc2d265f1521c2dcae0734de355962cc6cd7a0 (patch) | |
| tree | 9f914b554fa9af110fda60e6a3962fe9e3a40423 /src/SDCCglobl.h | |
| parent | a2a263dd383d76e4ee0ed62f393376ef2ae49171 (diff) | |
| download | sdcc-gas-3fcc2d265f1521c2dcae0734de355962cc6cd7a0.tar.gz | |
More work on GNU as generation
On _gas_mapping, label definitions do not allow "::". ":" must be
used instead.
gasOutput is now part of "options".
Unneeded sections, such as HOME/GSINIT/etc., are no longer declared
and/or defined. GNU as just does not need them.
Startup function name must equal "_start" for GNU ld.
The value of some macros, such as CODE_NAME or DATA_NAME, must change
according to options.gasOutput, as "CODE" or "DATA" (among many others)
are not understood by GNU as.
STM8 port now selects GNU as format on --gas switch enabled.
Diffstat (limited to 'src/SDCCglobl.h')
| -rw-r--r-- | src/SDCCglobl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SDCCglobl.h b/src/SDCCglobl.h index b2abbf2..89e33de 100644 --- a/src/SDCCglobl.h +++ b/src/SDCCglobl.h @@ -260,7 +260,7 @@ struct options int cc_only; /* compile only flag */ int intlong_rent; /* integer & long support routines reentrant */ int float_rent; /* floating point routines are reentrant */ - int out_fmt; /* 0 = undefined, 'i' = intel Hex format, 's' = motorola S19 format, 'E' = elf format, 'e' = true ELF format, 'Z' = gb format */ + int out_fmt; /* 0 = undefined, 'i' = intel Hex format, 's' = motorola S19 format, 'E' = elf format, 'Z' = gb format */ int cyclomatic; /* print cyclomatic information */ int noOverlay; /* don't overlay local variables & parameters */ int xram_movc; /* use movc instead of movx to read xram (mcs51) */ @@ -328,6 +328,7 @@ struct options int max_allocs_per_node; /* Maximum number of allocations / combinations considered at each node in the tree-decomposition based algorithms */ bool noOptsdccInAsm; /* Do not emit .optsdcc in asm */ bool oldralloc; /* Use old register allocator */ + int gasOutput; /* Output assembly in GNU as format */ }; /* forward definition for variables accessed globally */ @@ -362,7 +363,6 @@ extern struct optimize optimize; extern struct options options; extern unsigned maxInterrupts; extern int ignoreTypedefType; -extern int gasOutput; /* Visible from SDCCmain.c */ extern set *preArgvSet; |
