inline asm on a sparc

This is a discussion on inline asm on a sparc within the Linux Programming forums, part of the Platform Specific Boards category; hi all, i'm trying to include some basic x86 code as inline assembly in a C program. worked fine on ...

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    28

    inline asm on a sparc

    hi all,

    i'm trying to include some basic x86 code as inline assembly in a C program. worked fine on my own pc i was using nasm && gnu lib gcc/g++ as my compilers.

    my only real question is does any1 know if A. SunOS 5.7 supports x86 assembler...

    and B. if any1 know what the assembler is called.

    also, can gnu gcc/g++ compiler be used to assemble code?

    i know it can generate asm code with the -s option but i haven't seen anything that allows it to be used as an assembler.

    PS. not sure on the specs of the system but i'm quite sure it's a sparc box.

    Thanks again for any help,
    the busy little alien that could :-D

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,532
    > A. SunOS 5.7 supports x86 assembler
    No, it supports sparc assembler
    You don't really want to write in sparc assembler

    > B. if any1 know what the assembler is called.
    Most unix assembers are called 'as'

    > also, can gnu gcc/g++ compiler be used to assemble code
    Yes, read the manual
    _asm is the keyword IIRC

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Code review
    By Elysia in forum C++ Programming
    Replies: 71
    Last Post: 05-13-2008, 09:42 PM
  2. Certain functions
    By Lurker in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2003, 12:26 AM
  3. Inline asm
    By wavering in forum C Programming
    Replies: 2
    Last Post: 01-29-2002, 01:42 AM
  4. Inline asm - I love it!
    By wavering in forum C Programming
    Replies: 2
    Last Post: 01-08-2002, 01:19 PM
  5. My graphics library
    By stupid_mutt in forum C Programming
    Replies: 3
    Last Post: 11-26-2001, 05:05 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21