When i use the command mentioned by you i get the following error while
compiling:
*m68k-elf-gcc -Wl,-elf2flt -m5307 -msep-data -o hello hello.cpp -lstdc++
-lc -lgcc
hello.elf2flt: In function `void std::__convert_to_v<float>(char const*,
float&, std::_Ios_Iostate&, int* const&)':
/home/gerg/src/gnu/m68k-elf/autobuild/m68k-uclinux-gcc/m68k-uclinux/m5307/msep-data/libstdc++-v3/src/c++locale.cc:65:
undefined reference to `finitef'
collect2: ld returned 1 exit status*
However when i use it with g++ compilation is successful but the size if
too big and hence i use the -z flag to compress the output file.
*m68k-elf-g++ -Wl,-elf2flt -m5307 -msep-data -o hello hello.cpp -lstdc++
-lc -lgcc*
*-rwxr--r-- 1 root root 347776 Apr 23 11:14 hello*
Is there a difference in gcc and g++ compilation and which one needs to
be used.
David Wu wrote:
I tested your file on a 5329 board and it runs fine.
m68k-uclinux-gcc -Wl,-elf2flt -m5307 -msep-data -o hello hello.cpp
-lstdc++ -lc -lgcc
I'm using gcc version 4.1.1 (Sourcery G++ Lite 4.1-32)
Your previous problem seems that stack size is smaller than it needs.
When you increased stack size to 699359 then you don't have enough
memory to load the program
even it shows you still have 2048kB contiguous memory.
You may try another compiler.
On Fri, 20 Apr 2007 19:10:41 -0400, Praveen Chandrasekharaiah
<[EMAIL PROTECTED]> wrote:
I increased from 4k to 128k in steps of 2k and still got the same
error. At 699359 i got the new error.
David Wu wrote:
On Fri, 20 Apr 2007 18:35:11 -0400, Praveen Chandrasekharaiah
<[EMAIL PROTECTED]> wrote:
Hi David,
I increased the stack size all the way to 690000 using the below
command
but still got the same error.
*m68k-uclinux-flthdr -s 690000 hello*
On increasing the to 699359 the below output was obtained:
*Allocation of length 1051602 from process 44 failed
Normal: 0*4kB 1*8kB 1*16kB 0*32kB 1*64kB 0*128kB 1*256kB 0*512kB
0*1024kB 1*2048kB 0*4096kB = 2392kB
HighMem: empty
Unable to allocate RAM for process text/data, error 12*
can you decrease the stack size, you are using 690000 bytes for the
stack. try using 64K instead.
--David Wu
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev
--David Wu
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev