Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1617 -o not working as expected

closed-fixed
Borut Ražem
linker (61)
5
2013-05-25
2010-02-13
Steven Borley
No

Setting the output file name seems not to work correctly if it contains a period

$ ~/sdcc/bin/sdcc -o bob.something main.c
$ ls
bob.asm bob.ihx bob.lnk bob.lst bob.map bob.mem bob.rel bob.rst bob.sym main.c

I was expecting at least bob.something in place of the bob.ihex. I see some logic in what has been done, but I need prog.hex file not prog.ihx as an output file. If I supply an extension I would expect to be honoured.

This used to work with #5616
$ ~/sdcc-5616/bin/sdcc -o bob.something main.c
$ ls
bob.asm bob.lnk bob.lst bob.map bob.mem bob.rel bob.rst bob.something bob.sym main.c

A worse problem occurs with the --debug flag...

$ sdcc -o bob.something --debug main.c
Couldn't open file 'bob.something.cdb'
$ ls
bob.adb bob.asm bob.cdb bob.ihx bob.lnk bob.lst bob.map bob.mem bob.rel bob.rst bob.sym main.c

$sdcc --version
SDCC : mcs51/gbz80/z80/ds390/pic16/pic14/TININative/ds400/hc08 2.9.7 #5688 (Feb 12 2010) (Mac OS X i386)

Discussion

  • Steven Borley
    Steven Borley
    2010-02-16

    • labels: --> linker
     
  • Steven Borley
    Steven Borley
    2010-02-16

    I now realise the --debug problem occurs even when -o is not used...

    $ sdcc --debug main.c
    Couldn't open file 'main.ixh.cdb'

    Like the -o problem, this didn't manifest in #5616

     
  • Borut Ražem
    Borut Ražem
    2010-02-17

    Fixed in svn revision #5694.

    Borut

     
  • Borut Ražem
    Borut Ražem
    2010-02-17

    • milestone: --> fixed
    • assigned_to: nobody --> borutr
    • status: open --> closed-fixed