Find the answer to your Linux question:
Results 1 to 2 of 2
I have to compile a C code in both solaris and linux.But i think there are some issues related to porting from solaris to linux that is creating some problem.Are ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2005
    Posts
    1

    issues with porting c code from solaris to linux


    I have to compile a C code in both solaris and linux.But i think there are some issues related to porting from solaris to linux that is creating some problem.Are there any specific c code through which i can find which processor i am working or. ........are there some tools which can help me identify the functions that i have to change while porting

  2. #2
    Linux User
    Join Date
    Aug 2005
    Location
    Italy
    Posts
    401

    Hummmm...

    Probably there are many differences between Linux and Solaris...

    For some code running on both architectures you can see XFree86 (or X.org if you prefer), or MPlayer. MPlayer sources are available in GPL, and you can check the file cpudetect.c (or something like that) for run-time processor detection. It detects the processor type, cache informations, features like TSC istruction, SIMD instrctions... Using preprocessor macros the file is compiled for different systems (also solaris), so you can study that piece of code...

    IMHO The MPlayer source code is a little confused, but it's great!

    Remeber the GPL power.
    When using Windows, have you ever told "Ehi... do your business?"
    Linux user #396597 (http://counter.li.org)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •