From: SourceForge.net <no...@so...> - 2005-05-03 10:07:55
|
Bugs item #1194335, was opened at 2005-05-03 11:56 Message generated for change (Comment added) made by mleopold You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1194335&group_id=599 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Martin Leopold (mleopold) Assigned to: Nobody/Anonymous (nobody) Summary: Assembly fails w. --debug for files with "-" (hyphen) Initial Comment: It seems that the assembler doesn't like to assemble output files from sdcc produced with --debug if the filename contains a "-": I compiled and an extremely simple program (below) that I want to disassemble with sdcdb - to do this I enabled the --debug option. With this enabled compilation fails: sdcc --debug SetPort-sdcc2.c ?ASxxxx-Error-<o> in line 395 of SetPort-sdcc2.asm <o> .org in REL area or directive / mnemonic error ?ASxxxx-Error-<o> in line 409 of SetPort-sdcc2.asm <o> .org in REL area or directive / mnemonic error ?ASxxxx-Error-<o> in line 412 of SetPort-sdcc2.asm <o> .org in REL area or directive / mnemonic error ?ASxxxx-Error-<o> in line 419 of SetPort-sdcc2.asm <o> .org in REL area or directive / mnemonic error removing SetPort-sdcc2.rel The offending lines are C-source code: 395 C$SetPort-sdcc2.c$3$0$0 ==. ... 409 C$SetPort-sdcc2.c$4$1$1 ==. ... 419 C$SetPort-sdcc2.c$7$1$1 ==. If I rename the same program to SetPortsdcc2.c all is well... I've attached the .asm output for reference. The compiled program looks as follows: #include <8051.h> void main (void) { while (1) { P1 =0x01; } } ---------------------------------------------------------------------- >Comment By: Martin Leopold (mleopold) Date: 2005-05-03 12:07 Message: Logged In: YES user_id=444789 Forgot sdcc version SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/ hc08 2.5.0-pre1 #1018 (May 2 2005) (UNIX) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1194335&group_id=599 |