Compiling on PSP

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Bugabinga
Posts: 4
Joined: Tue Aug 25, 2009 1:33 am
Location: Ger

Compiling on PSP

Post by Bugabinga »

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.
jojojoris
Posts: 255
Joined: Sun Mar 30, 2008 4:06 am

Post by jojojoris »

It is theoretical possible. But nobody ever did it since it is too much work and nobody needs it.

Code: Select all

int main(){
     SetupCallbacks();
     makeNiceGame();
     sceKernelExitGame();
}
crazyc
Posts: 408
Joined: Fri Jun 17, 2005 10:13 am

Re: Compiling on PSP

Post by crazyc »

Turbo C in DOSBox. That's about it.
sauron_le_noir
Posts: 203
Joined: Sat Jul 05, 2008 8:03 am

Post by sauron_le_noir »

bootstrap gcc twice. But why doing such thing ?
Bugabinga
Posts: 4
Joined: Tue Aug 25, 2009 1:33 am
Location: Ger

Post by Bugabinga »

@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.
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

You'd need to port a really old compiler as the PSP doesn't have nearly enough memory for a modern compiler like gcc.
Bugabinga
Posts: 4
Joined: Tue Aug 25, 2009 1:33 am
Location: Ger

Post by Bugabinga »

@ J.F.
how do you know that for sure?
Bye, B.
jojojoris
Posts: 255
Joined: Sun Mar 30, 2008 4:06 am

Post by jojojoris »

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: Select all

int main(){
     SetupCallbacks();
     makeNiceGame();
     sceKernelExitGame();
}
Bugabinga
Posts: 4
Joined: Tue Aug 25, 2009 1:33 am
Location: Ger

Post by Bugabinga »

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.
svxs
Posts: 15
Joined: Fri Jun 19, 2009 10:03 am

Post by svxs »

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.
Post Reply