<<< Previous topic - Next topic >>> |
|
Author |
Message |
Phil Mack
Joined: 01 Nov 2006 Posts: 2
|
Posted: 01.11.2006, 15:10 Post subject: Object Limit 32k |
|
|
Hi,
I'm building an object file with the commands:
m68k-elf-gcc -Wall -m5307 -Wl,-elf2flt -Os error.c dsw.c grab_file.c -o dsw -lc
However, when the code size is >32K the program does not run. If the output file is less than 32k it runs fine. I'm using the gcc commands that come with the PDF files.
I'm sure there must be a way to support large executable files as for example vi is 40k |
|
Back to top |
|
|
kdw
Joined: 05 May 2006 Posts: 1460
|
Posted: 02.11.2006, 11:19 Post subject: 32 Kbytes limit ... |
|
|
Hi.
There is no 32 Kbytes limit. I think the reason can be within your data structures. Please check your code. How many data space is necessary (heap, stack) for your application?
Regards
Klaus |
|
Back to top |
|
|
Phil Mack
Joined: 01 Nov 2006 Posts: 2
|
Posted: 02.11.2006, 15:07 Post subject: |
|
|
I was doing some more digging about (up till 3am) then it hit me....
I left the program (called dsw) running while I did something else and notice on the console of the DNP/5280 the NFS mount going off and online and the Ethernet port flashing like mad.
What I do is mount my home directory from my Linux deployment system and just run the code from the DNP/5278 from the mounted file. This as it happens is the issue. The default mount is:
172.31.0.1:/home/phil on /home/phil type nfs (rw,v3,rsize=32768,wsize=32768,hard,udp,lock,addr=172.31.0.1)
As you can see the 32k R/W option. I move the program direct onto the DNP/5280 flash and it worked fine! i.e. running /home/phil/dsw failed, while /home/dsw worked fine.
Sorry to bother you.
Phil |
|
Back to top |
|
|
|