Hi Caitlin, caitilin lopez schrieb: > I tried to submit a bug report and it said that I need to register. So I did. > > > I did some more investigation about my issue (the compiler generates bad > output). If I generate the assembly files then I use aslink in the assembly > file the result is correct. It seems is an issue with the linker. > > Thanks > > P > My machine is a OpenSuse 11.0 X64 (kernel 2.6.25.20-0.5-default) > > GCC > > > cc (SUSE Linux) 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036] > Copyright (C) 2008 Free Software Foundation, Inc. > > > My original post > > Tried to compile a very simple c program using the latest sdcc for the > z80 (SDCC : > mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.9.4 > #5582 (Dec 6 2009) (UNIX)) > I know that everybody uses its own CRT, but this still is a bug > > > Thanks Caitlin > > sdcc -mz80 test.c > > try to run hex2bin and hex2bin crashes. The reason is that the ihx file is > not correct
sorry I'm not aware of the context (and the subject of your mail seems to be lost). I tried to reproduce this with OpenSuse 11.1 X64 and using hex2bin v1.0.6, Copyright (C) 1998 Jacques Pelletier which I downloaded from: http://sourceforge.net/projects/hex2bin/ and yes it crashes on the (cut'n pasted) ihx file with the CRT while it does not crash on the (cut'n pasted) ihx file without the CRT. ---8<--------- /tmp/Hex2bin/hex2bin test.ihx hex2bin v1.0.6, Copyright (C) 1998 Jacques Pelletier checksum extensions Copyright (C) 2004 Rockwell Automation improved P.G. 2007 Lowest address = 00000000 Highest address = FFFFFFFF Pad Byte = FF Speicherzugriffsfehler --->8--------- Yet if I pass it through a different application for converting hex to binary: srec_cat test.ihx -intel -Output test.bin -binary then the conversion completes without error. If it matters: the resulting binary file is of 565 byte length and has the md5sum 278bb707e10fa96c52e5670a220005c5 srec_cat is part of http://srecord.sf.net So it might be a problem of hex2bin v1.0.6. ("Highest address = FFFFFFFF" looks a bit ambituous and I see no reference to an address in this region in the .ihx file) Greetings, Frieder ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user