Results 1 to 3 of 3

Thread: gcc for i386-elf, on 64bit ubuntu machine?

  1. #1
    Join Date
    Dec 2008
    Beans
    328
    Distro
    Ubuntu 13.04 Raring Ringtail

    gcc for i386-elf, on 64bit ubuntu machine?

    hi there,
    could someone tell me how to get gcc/g++ for i386-elf target?
    i am running ubuntu 9.10 64bit.
    i installed g++ via the build-essentials package (apt-get install build-essentials).
    this means that when i compile
    Code:
    g++ -o hello hello.cpp
    then with
    Code:
    file hello
    i see that i got ELF binaries for x86_64-linux-gnu, which work great on my machine.
    but i am taking a class in which we need to build binaries for i386-elf, so i wonder how to do it.
    is there some package that i should install?
    thanks

  2. #2
    Join Date
    Feb 2008
    Beans
    1,145
    Distro
    Xubuntu

    Re: gcc for i386-elf, on 64bit ubuntu machine?

    You could set up a cross-compile environment, although that's probably more work than you want. Personally, I would set up Bloodshed in Wine.

    http://www.bloodshed.net/
    Help yourself: Ubuntu Docs - Ubuntu Packages

  3. #3
    Join Date
    Dec 2008
    Beans
    328
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: gcc for i386-elf, on 64bit ubuntu machine?

    i'd actually like to install it from source.
    after a frustrating week, i've finally been able to compile binutils, gcc and libgcc from source with target i386-elf.
    anyone knows of a good reference about cross-compiling glibc from source?

Bookmarks

Posting Permissions

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