| View previous topic :: View next topic |
| Author |
Message |
ab5000
Joined: 06 May 2008 Posts: 74
|
Posted: Sun Jan 03, 2010 3:06 am Post subject: [How To] Make Booster's IPL SDK work with GCC > 4.0.2 |
|
|
Hi.
Today i was experimenting with Booster's IPL SDK and my IPL wasn't working, even if it compiled correctly.
Searching in this forum i found that the IPL SDK doesn't work with a GCC version highter than 4.0.2. I found a solution to this problem, so i wrote this short How To.
The solution is deleting optimize (-O) flags from the Makefile, cleaning all the O files and recompiling.
Open your Makefile and find the CFLAGS line. It looks like this:
| Quote: | | CFLAGS = -O2 -G0 -Wall |
Now disable optimization (-O flags). The CFLAGS line without optimizations looks like this:
| Quote: | | CFLAGS = -G0 -Wall |
Now do a make clean.
If you previously compiled with a Makefile with optimization flags, you'll need to clear all IPL SDK .o files.
So delete all the .o files from these folders:
Now you're done. Just compile your IPL.
Bye!
ab5000. _________________
| Code: | %:include<stdio.h>
int _(int __,int ___,int ____,int _____)
<%for(;____<___;_____=_____*__,____++);
return _____;%>main()<%printf
("%d\n",_(2,5,0,1));%> |
|
|
| Back to top |
|
 |
Draan
Joined: 17 Oct 2009 Posts: 55
|
Posted: Sun Jan 03, 2010 11:09 pm Post subject: |
|
|
| The IPL prepared with sdk is working on Slim devices? |
|
| Back to top |
|
 |
sauron_le_noir
Joined: 05 Jul 2008 Posts: 229
|
Posted: Mon Jan 04, 2010 12:00 am Post subject: |
|
|
thx to share this. I was obliged to recompile with a older gcc to have it working
would be interresting to compare the assembler generatedwith and without
optimization to see where the code breaks |
|
| Back to top |
|
 |
Draan
Joined: 17 Oct 2009 Posts: 55
|
Posted: Mon Jan 04, 2010 12:26 am Post subject: |
|
|
I have a question.
I have MinPSPW + DevC++. I've tried to compile Flash Led sample.
I've got an error:
| Code: |
Assembler messages:
line numbers must be positive; line number 0 rejected
|
but it creates pspboot.bin anyway. So I can just ignore this error? |
|
| Back to top |
|
 |
ab5000
Joined: 06 May 2008 Posts: 74
|
Posted: Mon Jan 04, 2010 12:49 am Post subject: |
|
|
| Draan wrote: | I have a question.
I have MinPSPW + DevC++. I've tried to compile Flash Led sample.
I've got an error:
| Code: |
Assembler messages:
line numbers must be positive; line number 0 rejected
|
but it creates pspboot.bin anyway. So I can just ignore this error? |
Yes, you can ignore it. _________________
| Code: | %:include<stdio.h>
int _(int __,int ___,int ____,int _____)
<%for(;____<___;_____=_____*__,____++);
return _____;%>main()<%printf
("%d\n",_(2,5,0,1));%> |
|
|
| Back to top |
|
 |
|