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
How to use the assembly compiler of PSP SDK?
-
- Posts: 1
- Joined: Sun May 27, 2007 11:14 pm
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.
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.
I think he talks about this:
https://guinness.cs.stevens-tech.edu/~d ... 6/cvm.html
https://guinness.cs.stevens-tech.edu/~d ... 6/cvm.html
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.