#1617 -o not working as expected

closed-fixed
linker (61)
5
2013-05-25
2010-02-13
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
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks