sparc

Sparc Assembly Call corrupts data

I am at the moment working with some assembler code for the Sparc processor family, and i am having some truble with a piece of code.. I think the code and output explains more, but in the short.. When i do a call to the function println my varaibels that i have written to the %fp - 8 memory location is destoryed.. here is my assembler...

Sparc Procedure Call Conventions

Hi all, I would like to do some "inline" assemly programming in Sparc and I am wondering how I can do that with register passing. Best to explain my issue with a small example int main() { int a = 5; int b = 6; int res; asm_addition(a,b); printf("Result: %d\n", res); return(0); } // My assembler addition .global...

Disassembly question

Hi all, I had just a look at a very simple SPARC assembly output that I got from this C programm: int addition_func(int a, int b) { return(a+b); } void main() { int a = 20; int b = 19; int res; res = addition_func(a, b); } Disassembly of section .text: 00000000 <addition_func>: 0: 81 c3 e0 08 retl 4: 90 02 00 09 ...

Building subversion 1.6.12 - make: *** [subversion/libsvn_subr/libsvn_subr-1.la] Error 1 - Solaris 10 Sparc

I get the following while trying to compile subversion 1.6.12 from source on Solaris 5.10 SPARC platform. I only need the svn client program on this machine so no need for Apache, Neon or Swig. My configure: $ ./configure --without-berkeley-db --with-zlib=/usr --without-sasl --disable-nls --with-apr=/usr/local/apr --with-apr-util=/usr/...

Running JAVA on Windows Intel vs Solaris Sparc (T1000)

Hi I'm trying to test my JAVA app on Solaris Sparc and I'm getting some weird behavior. I'm not looking for flame wars. I just curious to know what is is happening or what is wrong... I'm running the same JAR on Intel and on the T1000 and while on the Windows machine I'm able to get 100% (Performance monitor) cpu utilisation on the Sola...

Is the SPARC architecture still relevant as a JIT compiler target on high-end servers?

X86 and AMD64 are the most important architectures for many computing environments (desktop, servers, and supercomputers). Obviously a JIT compiler should support both of them to gain acceptance. Until recently, the SPARC architecture was the logical next step for a compiler, specially on high-end servers markets. But now that Sun is de...

What macro are predefined by gcc for different SPARC processors?

Hello What macroses are predefined for C programms by GCC complier running on different SPARC processors. OS is the Linux. So how can I distinguish between UltraSPARC, SuperSPARC, Niagara, SPARC64, etc in compile time. Thanks ...

SPARC assembly xor specific bits in a register

i've spend few hours trying to figure this out the easiest way how can i xor certain bits in one register in sparc ex: xor %l0<1>, %l0<3>, %l0<5> i know i cant do that in sparc but this should show what i am trying to do. Thanks. ...

Relocation overflow when performing bitwise AND (SPARC Assembly)?

I am trying to perform a bitwise AND on a register, as a bitmask to remove the most significant bit (which happens to be bit 16 when counting from 0). However, when I try to compile my code using gcc, it gives me the following error messages: Assembler messages: 19: Error: relocation overflow My guess is that this has something to do w...