| View previous topic :: View next topic |
| Author |
Message |
jason.zhou
Joined: 27 May 2007 Posts: 1
|
Posted: Sun May 27, 2007 11:34 pm Post subject: How to use the assembly compiler of PSP SDK? |
|
|
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 |
|
 |
hlide
Joined: 10 Sep 2006 Posts: 750
|
Posted: Mon May 28, 2007 2:49 am Post subject: |
|
|
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 |
|
 |
adrahil
Joined: 16 Mar 2006 Posts: 277
|
Posted: Mon May 28, 2007 5:38 am Post subject: |
|
|
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 |
|
 |
|