Find the answer to your Linux question:
Results 1 to 3 of 3
I have a program based out of Green Hill's MULTI Software that needs to be moved to GNU so that may become a standalone executable, ported to run on an ...
  1. #1
    Just Joined!
    Join Date
    Jul 2009
    Posts
    27

    Moving program to GNU, few questions

    I have a program based out of Green Hill's MULTI Software that needs to be moved to GNU so that may become a standalone executable, ported to run on an intel processor and a Motorola 68k. I have been working on this for a while but have several questions. The program currently consists of several c scripts, assembly files, and header files.

    I realize I need a Linker script, a config script, a Makefile, and changes to all the code to make it function properly. However, there are some underlying details that I do not understand.

    Right now I am working on the makefile and have the following question:

    - Where do I compile the assembly files? Do they even need to be compiled? In most makefiles I have seen online they do not include the assembly files.


    That is all for now but I will post other questions as they come up. Thanks for any help!!

  2. #2
    Linux Enthusiast gerard4143's Avatar
    Join Date
    Dec 2007
    Location
    Canada, Prince Edward Island
    Posts
    714
    If the assembly files are converted to GAS(AT&T) syntax and Linux then you can compile them using GNU GCC like:

    as filename.s -o filename.o

    ld filename.o -o filename

    Note assembly code is notorious for being non-portable, you'll probably have to rewrite most of the assembler files...Gerard4143
    Make mine Arch Linux

  3. #3
    Just Joined!
    Join Date
    Jul 2009
    Posts
    27
    Quote Originally Posted by gerard4143 View Post
    If the assembly files are converted to GAS(AT&T) syntax and Linux then you can compile them using GNU GCC like:

    as filename.s -o filename.o

    ld filename.o -o filename

    Note assembly code is notorious for being non-portable, you'll probably have to rewrite most of the assembler files...Gerard4143

    Ok, so those commands can just be written into the makefile then. Thanks a lot!

Posting Permissions

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