Re: Weird 8051 assembler code generated by SDCC



Roberto Waltman wrote:

"Desert Rat" wrote:

I am using SDCC on a 8051 project and the C code uses a switch
statement which has some in-line assembler code in several spots. The
program compiles without any errors, but the assembler generates a
dozen or so "undefined symbol encountered during assembly" errors. The
errors all had to do with jump statements...
...
So this is the guess: something in your in-line assembly (labels
probably) is terminating the range of the compiler generated
limited-scope labels, so the jump statements so no see them.
Try removing them temporarily to see if that is the case.

Or better: Try editing the assembly file, replacing the compiler
generated labels with conventional ones:

00111$ --> label00111, etc.


.



Relevant Pages

  • Re: when to use proc
    ... > Here's what I understand about your macros. ... * RosAsm is a PE Assembler and PEs are 32 Bits. ... Simply A86-like Local Labels. ... wrote that MASM does not output what you write... ...
    (alt.lang.asm)
  • Re: A couple of debug questions
    ... controlling flow. ... was really the province of assembler and BASIC. ... And if you think about it, why did you jump to ... Line numbers and jump labels did not *by themselves* make that any ...
    (comp.lang.clipper)
  • Re: This Crashes RosAsm
    ... > RosAsm can, of course and evidently hold any number ... > of the actual Assembler. ... > labels in a very effective manner. ... > * In case MASM would compile such a list of Labels ...
    (alt.lang.asm)
  • Re: Why RosAsm Breaks on a large number of symbols
    ... "wolfgang kern" écrivait news:cc9386$12p$1 ... >| ...But as long as you don't fix the bugs in your assembler, ... > to change a single bit in RosAsm in due of it. ... wrong with his stupid labels List, ...
    (alt.lang.asm)
  • Re: Weird 8051 assembler code generated by SDCC
    ... statement which has some in-line assembler code in several spots. ... easier to generate temporary labels. ... probably) is terminating the range of the compiler generated ...
    (comp.arch.embedded)