| View previous topic :: View next topic |
| Author |
Message |
Bugabinga
Joined: 25 Aug 2009 Posts: 4 Location: Ger
|
Posted: Tue Aug 25, 2009 1:44 am Post subject: Compiling on PSP |
|
|
Hi!
Is it possible to port an existing compiler to run on the PSP ?
If so, could you point me in the right direction on where to start...? _________________ Bye, B. |
|
| Back to top |
|
 |
jojojoris
Joined: 30 Mar 2008 Posts: 261
|
Posted: Tue Aug 25, 2009 2:13 am Post subject: |
|
|
It is theoretical possible. But nobody ever did it since it is too much work and nobody needs it. _________________
| Code: | int main(){
SetupCallbacks();
makeNiceGame();
sceKernelExitGame();
} |
|
|
| Back to top |
|
 |
crazyc
Joined: 17 Jun 2005 Posts: 410
|
Posted: Tue Aug 25, 2009 2:32 am Post subject: Re: Compiling on PSP |
|
|
| Turbo C in DOSBox. That's about it. |
|
| Back to top |
|
 |
sauron_le_noir
Joined: 05 Jul 2008 Posts: 229
|
Posted: Tue Aug 25, 2009 3:25 am Post subject: |
|
|
| bootstrap gcc twice. But why doing such thing ? |
|
| Back to top |
|
 |
Bugabinga
Joined: 25 Aug 2009 Posts: 4 Location: Ger
|
Posted: Tue Aug 25, 2009 5:52 am Post subject: |
|
|
@all thanks for super quick reply !
@ jojojoris
by "theoretical possible" do you mean it is actually possible to take, lets
say an existing compiler source code, modify it a little, and then compile it
to EBOOT.PBP ;
Or do you mean to rewrite a compiler from scratch ? ( that of course
would be too much work...)
@sauron_le_noir
I am flirting with the idea of a PSPDev IDE on the PSP... why you ask?
It seems natural to me ,that apps for PSP should be created on the PSP. _________________ Bye, B. |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Tue Aug 25, 2009 8:47 am Post subject: |
|
|
| You'd need to port a really old compiler as the PSP doesn't have nearly enough memory for a modern compiler like gcc. |
|
| Back to top |
|
 |
Bugabinga
Joined: 25 Aug 2009 Posts: 4 Location: Ger
|
Posted: Wed Aug 26, 2009 1:42 am Post subject: |
|
|
@ J.F.
how do you know that for sure? _________________ Bye, B. |
|
| Back to top |
|
 |
jojojoris
Joined: 30 Mar 2008 Posts: 261
|
Posted: Wed Aug 26, 2009 3:22 am Post subject: |
|
|
| Bugabinga wrote: | @ J.F.
how do you know that for sure? |
We are pro's we know that.
I guess when you are not even able to think of a way to monitor the RAM usage while programming you also are not able to port a compiler or even create something. _________________
| Code: | int main(){
SetupCallbacks();
makeNiceGame();
sceKernelExitGame();
} |
|
|
| Back to top |
|
 |
Bugabinga
Joined: 25 Aug 2009 Posts: 4 Location: Ger
|
Posted: Wed Aug 26, 2009 5:10 am Post subject: |
|
|
Well, then teach me.
If I monitor the RAM usage of a program on my ,let's say, intel cpu windows machine, will the RAM usage be the same ,if I run the same prog but targetet for another cpu?
Maybe a workaround to this problem could be to delegate compiling to a webserver, but then the PSPDev IDE would be only half as portable... _________________ Bye, B. |
|
| Back to top |
|
 |
svxs
Joined: 19 Jun 2009 Posts: 15
|
Posted: Wed Aug 26, 2009 5:42 am Post subject: |
|
|
| Quote: |
It seems natural to me ,that apps for PSP should be created on the PSP.
|
I get a different vibe. It's unnatural. The cons outweigh the pros in a case like this:
The PSP's processor is inherently slower than my PC's dual core x86 CPU. It also lacks a sizable cache. I would cringe if I had to compile my project's current 1.3 MB of raw code as often as I do on the PSP itself.
It's unnatural to program the code for the PSP on a PC and then send it to the PSP's memory stick to be recognized by a compiler.
I suppose a GUI could be involved to help make selecting a project to compile easier, and maybe even changing the compiler's CFLAGS. It still doesn't seem as natural as a keyboard.
The PSP's memory stick access times are unspeakably slow when compared to those of my PC's RAID array.
Ever compiled gcc for a Pentium Pro or something even older? It's not fun. |
|
| Back to top |
|
 |
|