 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
Radamantis
Joined: 14 Apr 2008 Posts: 4 Location: Caserta - Italy
|
Posted: Tue May 13, 2008 1:52 am Post subject: Weird things about the symbols table |
|
|
Hi, i'm an italian student and i'm experiencing programming in the cell environment for my graduation thesis. Today something weird happened when i compiled an SPU image using spu-gfortran: when i started the ppu program with the spu image, i got an error message saying "OS ERROR: NOT ENOUGH SPACE"; so i looked at the spu image and i've seen that it was 640kb! i tried to delete some functions and compiled using the -O2 flag, but nothing very significative happened... so, just for fun, i tried to strip the image, and i've seen that without the symbol table it was 220kb... in the end, i've compiled with the -s flag, executed the whole program (including the ppu) and everything worked fine.
The question i've got for you now is... is it possible that the compiler adds a symbols table 400kb large? if so, why the hell to do this? thanks a lot for every answer, i'm going to really appreciate it. _________________ Radamantis, the greatest caution |
|
| Back to top |
|
 |
Radamantis
Joined: 14 Apr 2008 Posts: 4 Location: Caserta - Italy
|
Posted: Thu May 15, 2008 6:39 pm Post subject: Solved! |
|
|
Thanks for visiting the topic guys, i've fixed the problem.
I noticed that in the fortran code was a write function, that prints to the standard output a message when something goes wrong... deleting it the image is 40kb large. I think that to avoid performing too much dma requests, the spu-gfortran compiler statically includes the whole i/o library.
I'm really sorry for no thinking about it. _________________ Radamantis, the greatest caution |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|