AnsweredAssumed Answered

Compilation or not compilation

Question asked by Philippe Vallee on Jun 19, 2013
Latest reply on Jun 19, 2013 by Styger

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

 

 


Outcomes