programing language .ELF

Discussion in 'Wii - Hacking' started by Prime, Apr 4, 2008.

  1. Prime
    OP

    Prime GBAtemp Psycho!

    Member
    0
    Nov 7, 2007
    Under your bed
    What programing language is used to create a .elf? (for the twilight hack)
     
  2. arctic_flame

    arctic_flame GBAtemp ATMEGA8 Fan

    Member
    1
    Nov 4, 2006
    England land
    C, or C++ compiled with devkitPPC of the devkitPro toolchain.
     
  3. Prime
    OP

    Prime GBAtemp Psycho!

    Member
    0
    Nov 7, 2007
    Under your bed
    Ah, right thanks arctic_flame

    EDIT: agh i cant get my head around the devkitPPC. How do i compile??
     
  4. arctic_flame

    arctic_flame GBAtemp ATMEGA8 Fan

    Member
    1
    Nov 4, 2006
    England land
    I assume you're on windows. Get the devkitPro installer from devkitpro.org. Make sure you install devkitPPC (GC/Wii) (devkitARM is for the GBA/DS, take a guess for devkitPSP).

    After the install is done, restart, or logoff/logon. Then find Msys in your start menu under devkitPro, this will get you a shell. To compile, navigate to the folder (cd /c/devkitPro/.../project/) (CASE SENSITIVE) and type "make".
     
  5. Prime
    OP

    Prime GBAtemp Psycho!

    Member
    0
    Nov 7, 2007
    Under your bed
    When i do what you said it says "nothing to be done".

    I thought i'd go ahead and put it on my SD Card. I rename it boot.elf but when i start up twilight princess it freezes trying to load the .elf i think.

    [​IMG]
     
  6. arctic_flame

    arctic_flame GBAtemp ATMEGA8 Fan

    Member
    1
    Nov 4, 2006
    England land
    Post what you're trying to compile.
     
  7. superrob

    superrob H4X H4X H4X!

    Member
    2
    Apr 4, 2007
    GBATemp factory.
    Try your projects .dol format in the included emulator [​IMG]
    If it doesn't work in that in most likely also wont work on the Wii.
    And remember to watch the compile log for errors [​IMG]
     
  8. Prime
    OP

    Prime GBAtemp Psycho!

    Member
    0
    Nov 7, 2007
    Under your bed
    Wait i might this completely wrong. Can i just make a .elf which contain a simple "Hello World" written in C?

    CODE#include

    int main(void)
    {
    ÂÂÂÂprintf("hello, world\n");
    ÂÂÂÂreturn 0;
    }

    maybe i need to have a special code or something to make it work on the twilight hack.
     
  9. tredes

    tredes GBAtemp Regular

    Member
    0
    Mar 17, 2008
    im very interested in this too..i would like to know the difference and how to compile a program to run on the twliilight hack...

    any help is great...iv followed to above instructions....
     
  10. Prime
    OP

    Prime GBAtemp Psycho!

    Member
    0
    Nov 7, 2007
    Under your bed
    Well just keep a eye on this thread. Hopefully arctic_flame will write back.
     
  11. arctic_flame

    arctic_flame GBAtemp ATMEGA8 Fan

    Member
    1
    Nov 4, 2006
    England land
     
  12. Prime
    OP

    Prime GBAtemp Psycho!

    Member
    0
    Nov 7, 2007
    Under your bed
    [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG]

    Is there anywhere i can learn about C for the Wii? like a tutorial?
     
  13. arctic_flame

    arctic_flame GBAtemp ATMEGA8 Fan

    Member
    1
    Nov 4, 2006
    England land
  14. Prime
    OP

    Prime GBAtemp Psycho!

    Member
    0
    Nov 7, 2007
    Under your bed
    Thanks.

    The chances of me making a .elf are slipping away every so slightly.
     
  15. arctic_flame

    arctic_flame GBAtemp ATMEGA8 Fan

    Member
    1
    Nov 4, 2006
    England land
    Don't get discouraged. However, I would learn some C(++) first [​IMG] then write software for specific systems later.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice