Hi 

while trying to optimize my code I was trying to get the compiler
to place the internal variables into some non overlayed section with
the '--preplace-udata-with' command line option but in all circumstances
I've tried it results in one or more error messages of the following form:

sdcc(6758) malloc: *** error for object 0x1eff1f: Non-aligned pointer being
freed
*** set a breakpoint in malloc_error_break to debug


Below is the complete result of one clean make for my application:

br Kusti



**** Build of configuration Default for project Toad3V2 ****

make all
Makefile:87: ../obj/cmdQueue.dep: No such file or directory
Makefile:87:
./obj/cmdInterp.dep: No such file or directory
Makefile:87:
./obj/usartirq.dep: No such file or directory
Makefile:87: ../obj/main.dep:
No such file or directory
Makefile:87: ../obj/tests.dep: No such file or
directory
Makefile:87: ../obj/stepper.dep: No such file or
directory
sdcc(6721) malloc: *** error for object 0x1eff1f: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to
debug
sdcc(6727) malloc: *** error for object 0x1eff1f: Non-aligned pointer
being freed
*** set a breakpoint in malloc_error_break to debug
sdcc(6733)
malloc: *** error for object 0x1eff1f: Non-aligned pointer being freed
***
set a breakpoint in malloc_error_break to debug
sdcc(6739) malloc: *** error
for object 0x1eff1f: Non-aligned pointer being freed
*** set a breakpoint in
malloc_error_break to debug
sdcc(6745) malloc: *** error for object
0x1eff1f: Non-aligned pointer being freed
*** set a breakpoint in
malloc_error_break to debug
sdcc(6751) malloc: *** error for object
0x1eff1f: Non-aligned pointer being freed
*** set a breakpoint in
malloc_error_break to debug
/usr/local/bin/sdcc -c "-Wl,-m,-s 18f4550.lkr"
-mpic16 -p18f4550 --disable-warning 85 --std-sdcc99 --obanksel=3
--preplace-udata-with=huuhaa cmdQueue.c -o ../obj/cmdQueue.o
sdcc(6755)
malloc: *** error for object 0x1eff1f: Non-aligned pointer being freed
***
set a breakpoint in malloc_error_break to debug
/usr/local/bin/sdcc -c
"-Wl,-m,-s 18f4550.lkr" -mpic16 -p18f4550 --disable-warning 85 --std-sdcc99
--obanksel=3  --preplace-udata-with=huuhaa cmdInterp.c -o
./obj/cmdInterp.o
sdcc(6758) malloc: *** error for object 0x1eff1f:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break
to debug
/usr/local/bin/sdcc -c "-Wl,-m,-s 18f4550.lkr" -mpic16 -p18f4550
--disable-warning 85 --std-sdcc99 --obanksel=3  --preplace-udata-with=huuhaa
usartirq.c -o ../obj/usartirq.o
sdcc(6761) malloc: *** error for object
0x1eff1f: Non-aligned pointer being freed
*** set a breakpoint in
malloc_error_break to debug
/usr/local/bin/sdcc -c "-Wl,-m,-s 18f4550.lkr"
-mpic16 -p18f4550 --disable-warning 85 --std-sdcc99 --obanksel=3
--preplace-udata-with=huuhaa main.c -o ../obj/main.o
sdcc(6764) malloc: ***
error for object 0x1eff1f: Non-aligned pointer being freed
*** set a
breakpoint in malloc_error_break to debug
/usr/local/bin/sdcc -c "-Wl,-m,-s
18f4550.lkr" -mpic16 -p18f4550 --disable-warning 85 --std-sdcc99
--obanksel=3  --preplace-udata-with=huuhaa tests.c -o
./obj/tests.o
sdcc(6767) malloc: *** error for object 0x1eff1f: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to
debug
/usr/local/bin/sdcc -c "-Wl,-m,-s 18f4550.lkr" -mpic16 -p18f4550
--disable-warning 85 --std-sdcc99 --obanksel=3  --preplace-udata-with=huuhaa
stepper.c -o ../obj/stepper.o
sdcc(6770) malloc: *** error for object
0x1eff1f: Non-aligned pointer being freed
*** set a breakpoint in
malloc_error_break to debug
/usr/local/bin/sdcc -c "-Wl,-m,-s 18f4550.lkr"
-mpic16 -p18f4550 --disable-warning 85 --std-sdcc99 --obanksel=3
--preplace-udata-with=huuhaa stepperIrq.c -o ../obj/stepperIrq.o
sdcc(6773)
malloc: *** error for object 0x1eff1f: Non-aligned pointer being freed
***
set a breakpoint in malloc_error_break to debug
/usr/local/bin/sdcc
"-Wl,-m,-s 18f4550.lkr" -mpic16 -p18f4550 --disable-warning 85 --std-sdcc99
--obanksel=3  --preplace-udata-with=huuhaa -o ../obj/toad3.hex
./obj/cmdQueue.o ../obj/cmdInterp.o ../obj/usartirq.o ../obj/main.o
./obj/tests.o ../obj/stepper.o ../obj/stepperIrq.o libc18f.lib
libio18f4550.lib libm18f.lib libsdcc.lib 
sdcc(6776) malloc: *** error for
object 0x1eff1f: Non-aligned pointer being freed
*** set a breakpoint in
malloc_error_break to debug



------------------------------------------------------------------------------
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to