Hello,
I have found a little bug in codewarrior 10.4 :
Processor = MS9S08QE128
Project mixed with C and ASM, parts in separate sources (ASM not in C sources)
- Variable declared in C ex: char VAR1
ASM Include sources: asm_var.inc
content:
XREFB VAR1
FOO: EQU 5
Assembly source: asm_main.asm
content:
INCLUDE 'asm_var.inc'
label:
MOV FOO,VAR1
RTS
Compilation build project = OK, no errors
The values in asm_var.inc are modified like this and saved on disk
XREFB VAR12345
FOOZSQ: EQU 5
Compilation build project = OK, no errors !!!
To find the errors, I need to clean the project and rebuild it. With "normal" compilation this big bug is not detected.
I try to rename the include file asm_var.inc in asm_var.s, coloring syntax appear but the bug remain.
With the same wrong value in include file and adding an error on keyword XREFB
XREFBx VAR12345
FOOZSQ: EQU 5
The error is now detected, it's seems that variables are not always verified by the builder ??
Thank you
Philippe
Hello,
or in other words: the GNU make file is not properly tracking the assembly include file dependencies.
I faced that problem too and have filed a bug report on this.
I know that this does not help, but at least I can confirm the issue.
As a workaround, if you change a .inc file, either change/touch the assemly file(s) using it, or do a clean as you already did.
I hope this helps (at least somewhat).