question about the little-endian in sparc


 
Thread Tools Search this Thread
Operating Systems Solaris question about the little-endian in sparc
# 8  
Old 11-23-2008
I'd like to handle the little-endian binary code from other system( like linux) on a sparc system at instruction level, so if I can't load the data in little-endian mode, then i have to add some instructions to swith it , it's nearly more then 10 instructions, and if to every load(or store) instruction on sparc , I have to swith it from little-endian to big-endian( or from big-endian to little-endian) , it's really too inefficient.

Last edited by zerocool_08; 11-23-2008 at 09:32 AM..
# 9  
Old 11-23-2008
What little-endian binary code is this ? Is it really code or data ? SPARC code must be big-endian regardless or the data mode.
How much volume / bandwitch do you handle ?

I dig a little in the Solaris kernel code and found out that there is actually some provision for little-endian operations on UltraSPARC after all.

See that source code for an example.
Cross Reference: /onnv/onnv-gate/usr/src/common/openssl/crypto/md5/asm/md5-sparcv9.S
# 10  
Old 11-23-2008
Thank you very much.

We are trying to build a dynamic binary translation tool that could run the x86 code on a sparc system. And little-endian binary code means a common executable binary code in linux , such as the elf file, but I treat it as input data, and I manually generate some sparc instructions to handle it.
# 11  
Old 11-23-2008
Interesting but not an easy task. Wabi used to do that on Solaris.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

Endian vs pfsense??

Hi Endian firewall free version if we do compare pfsense For a LAN network with active user 1000 Which do you recommend Share (0 Replies)
Discussion started by: mnnn
0 Replies

2. UNIX for Dummies Questions & Answers

can I emulate solaris/sparc on virtualbox? Or other emulator to run solaris for sparc in my win7 PC?

Hi Gurus can I emulate solaris/sparc on virtualbox? Or other emulator to run solaris for sparc in my win7 PC? regards, Israel. (9 Replies)
Discussion started by: iga3725
9 Replies

3. Solaris

sparc 5 HD question

i know this is hardware, not software related, but i figure this would be a good place to ask.. I have a sparcstation/5 and what to make a file server out of it. Does anyone know what the largest SCA disk that it will accept? (2 Replies)
Discussion started by: gopher2
2 Replies

4. UNIX and Linux Applications

Migrating Oracle from Big Endian to Little Endian Platorm

Hi, We are trying to migrate an oracle database from Sun Solaris (SunOS 5.9 Generic_118558-28 sun4u sparc SUNW,Ultra-60) to Linux 2.6.18-53.1.19.el5 #1 SMP Tue Apr 22 03:01:10 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux which is basically a Big Endian to Little Endian conversion. We shutdown... (3 Replies)
Discussion started by: luft
3 Replies

5. UNIX for Dummies Questions & Answers

Little Endiean and Big Endian

Dear Friends, I have one question in my mind. That question is "how to detect whether the system is little endiean or big endian" Processing the bit position is the difference between this endians. But I could not understand how to find the pariticular sytem works... (3 Replies)
Discussion started by: Nirmal Babu
3 Replies

6. UNIX for Advanced & Expert Users

Endian Conversion

Hi everybody, I met this week a problem. For now, we used TRU64 system based on alpha. Now, we're installing UP-UX systems (on Itanium). And we have problem with our files. Indeed, we use file with COMP-3, COMP-5 data. These files are used on both platforms. (we use also TXT files which... (1 Reply)
Discussion started by: bigmike59270
1 Replies

7. Programming

Big and Little Endian

We are developing an application using TLI for network communication.The Server Code is developed in Sun and client in SCO unix. When we route data from Client to Server we encrypt the data using DES algotithm utility.The problem we are facing that Sun uses Big Endian methodology to store data in... (1 Reply)
Discussion started by: S.P.Prasad
1 Replies

8. UNIX for Dummies Questions & Answers

Insane question : Playing mp3 file from Sun Sparc

hi, i know this is crazy. but i can do this from linux in intel platform. just wonder can my Sun Solaris 8 sparc can do the same thing? (2 Replies)
Discussion started by: champion
2 Replies

9. UNIX for Advanced & Expert Users

AIX endian again

Hi all I know AIX is big-endian machine.But does it read bytes in normal way from LSB. Does it happen in some machine that at multi-byte integer level it is Little-endian and while reading a single byte it is Big-Endian. This is urgent Thanks in advance. (3 Replies)
Discussion started by: Shobhit
3 Replies

10. UNIX for Advanced & Expert Users

Endian issues in TCP/IP

Hello, Can anybody tell me whether the little endian-big endian issues will affect porting from True64 to HP UNIX or TCP/IP will take care of that? If it affects what can be the solution. Thank you, (3 Replies)
Discussion started by: informshilpa
3 Replies
Login or Register to Ask a Question