summaryrefslogtreecommitdiff
path: root/src/stm8/gen.c
Commit message (Collapse)AuthorAgeFilesLines
* _Noreturn-qualified functions now do not generate any ret/iret instructionXavier ASUS2019-10-301-21/+31
|
* BugfixesXavier ASUS2019-10-301-2/+8
|
* DWARF2 debugging (almost) workingXavier ASUS2019-10-251-10/+10
| | | | | Stack pointer setup is removed since it is already set to 0x3FF for the STM8S003F3/K3, according to the datasheet.
* Got hi8/lo8 asm instructions workingXavier ASUS2019-10-241-3/+25
| | | | | | | | | | | | GNU as does not support the #</#> notation asxxx uses to determine address LSB and MSB. Instead, two instructions have been created on GNU as and ld (see my stm8-binutils-gdb fork) for this purpose. On the other hand, I'm upset to see gen.c does not provide an assembler-agnostic implementation when SDCCasm.c already provides tools already meant for this. OTOH, support for the "-C" has been added for --gas.
* Implemented -c support for --gasXavier ASUS2019-10-231-6/+13
| | | | | | | | | | | | STM8 code generator was generating some instructions in a "ld register, (#%d, register)" way, causing assembling errors on stm8-as. This is because stm8-as does not require the '#' character. A quick and dirty workaround has been implemented for this. Added new warning W_IGNORED_OPT_IN_ASM, which warns the user when both "--no-optsdcc-in-asm" and "--gas" are used (the first is ignored when the latter is active since GNU as does not accept the .optsdcc directive, as opposed to asxxx).
* First working example!Xavier ASUS2019-10-221-1/+8
| | | | | | stm8/main.c: 0x8000 must contain the entry point aka "_start" for GNU as. Some work on supporting debugging symbols with --gas. Not finished yet.
* Implemented --ffunction-sectionsXavier ASUS2019-10-211-39/+47
| | | | | | | Interrupt vector must be placed on section .vectors, according to the default linker script file. Intermediate labels must be $-terminated so they are not listed by nm.
* sdcc-3.9.0 fork implementing GNU assembler syntaxXavier ASUS2019-10-181-0/+8223
This fork aims to provide better support for stm8-binutils