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 

How to use the assembly compiler of PSP SDK?

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



Joined: 27 May 2007
Posts: 1

PostPosted: Sun May 27, 2007 11:34 pm    Post subject: How to use the assembly compiler of PSP SDK? Reply with quote

Hi friends,

I am trying to deploy CVM onto my PSP, and currently I encounter some problems related with the assembly compiler, they are listed as below:

1. which is the assembly compiler? psp-gcc or psp-as?
2. how to set the compiler flags?

Please help me on it, Thanks in advance!

With Best Regards,
Jason
Back to top
View user's profile Send private message MSN Messenger
hlide



Joined: 10 Sep 2006
Posts: 750

PostPosted: Mon May 28, 2007 2:49 am    Post subject: Reply with quote

your post really lacks infos. How do you think we can help so poor information ???

1° what is it CVM ?

2° what is the makefile, the host platform and environment you run ?

3° what is the offended text it displays ?

if you are speaking about an assembler, psp-as is the right thing.

psp-gcc is only a C compiler (well you can still use it to call psp-as (via -S) or psp-c++).

If CVM is not a program for PSP but for x86 for instance, don't expect psp-as to generate binary from a x86 assembly code.
Back to top
View user's profile Send private message
adrahil



Joined: 16 Mar 2006
Posts: 277

PostPosted: Mon May 28, 2007 5:38 am    Post subject: Reply with quote

I think he talks about this:
https://guinness.cs.stevens-tech.edu/~dduggan/Local/Teach/cs516/cvm.html

Quote:
Programs in CVM can be emitted in:

* Java assembly language, though with some type information omitted so you cannot feed it to Jasmin.
* MIPS assembly with all variables in registers. To avoid the need for register allocation, we assume an infinite number of temporary registers and argument registers. Still code generation uses the stack-of-temporaries idea to reuse temporaries during code generation. You do not need to worry about temporaries. The CVM code generator generates temporaries as part of generating MIPS assembly. You focus on generating the CVM code, using the CVM stack to store intermediate values.
* MIPS assembly with variables stored in stack frames. Same assumptions as before, but program variables are loaded from stack frames when read, and written to stack frames when assigned to.
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