forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Compiling on PSP

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Bugabinga



Joined: 25 Aug 2009
Posts: 4
Location: Ger

PostPosted: Tue Aug 25, 2009 1:44 am    Post subject: Compiling on PSP Reply with quote

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
View user's profile Send private message
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Tue Aug 25, 2009 2:13 am    Post subject: Reply with quote

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
View user's profile Send private message
crazyc



Joined: 17 Jun 2005
Posts: 410

PostPosted: Tue Aug 25, 2009 2:32 am    Post subject: Re: Compiling on PSP Reply with quote

Turbo C in DOSBox. That's about it.
Back to top
View user's profile Send private message
sauron_le_noir



Joined: 05 Jul 2008
Posts: 229

PostPosted: Tue Aug 25, 2009 3:25 am    Post subject: Reply with quote

bootstrap gcc twice. But why doing such thing ?
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Bugabinga



Joined: 25 Aug 2009
Posts: 4
Location: Ger

PostPosted: Tue Aug 25, 2009 5:52 am    Post subject: Reply with quote

@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
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Tue Aug 25, 2009 8:47 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Bugabinga



Joined: 25 Aug 2009
Posts: 4
Location: Ger

PostPosted: Wed Aug 26, 2009 1:42 am    Post subject: Reply with quote

@ J.F.
how do you know that for sure?
_________________
Bye, B.
Back to top
View user's profile Send private message
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Wed Aug 26, 2009 3:22 am    Post subject: Reply with quote

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
View user's profile Send private message
Bugabinga



Joined: 25 Aug 2009
Posts: 4
Location: Ger

PostPosted: Wed Aug 26, 2009 5:10 am    Post subject: Reply with quote

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
View user's profile Send private message
svxs



Joined: 19 Jun 2009
Posts: 15

PostPosted: Wed Aug 26, 2009 5:42 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
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