programing language .ELF

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

Apr 4, 2008

programing language .ELF by Prime at 4:17 PM (1,633 Views / 0 Likes) 14 replies

  1. Prime
    OP

    Member Prime GBAtemp Psycho!

    Joined:
    Nov 7, 2007
    Messages:
    3,664
    Location:
    Under your bed
    Country:
    United Kingdom
    What programing language is used to create a .elf? (for the twilight hack)
     
  2. arctic_flame

    Member arctic_flame GBAtemp ATMEGA8 Fan

    Joined:
    Nov 4, 2006
    Messages:
    2,840
    Location:
    England land
    Country:
    United Kingdom
    C, or C++ compiled with devkitPPC of the devkitPro toolchain.
     
  3. Prime
    OP

    Member Prime GBAtemp Psycho!

    Joined:
    Nov 7, 2007
    Messages:
    3,664
    Location:
    Under your bed
    Country:
    United Kingdom
    Ah, right thanks arctic_flame

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

    Member arctic_flame GBAtemp ATMEGA8 Fan

    Joined:
    Nov 4, 2006
    Messages:
    2,840
    Location:
    England land
    Country:
    United Kingdom
    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

    Member Prime GBAtemp Psycho!

    Joined:
    Nov 7, 2007
    Messages:
    3,664
    Location:
    Under your bed
    Country:
    United Kingdom
    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

    Member arctic_flame GBAtemp ATMEGA8 Fan

    Joined:
    Nov 4, 2006
    Messages:
    2,840
    Location:
    England land
    Country:
    United Kingdom
    Post what you're trying to compile.
     
  7. superrob

    Member superrob H4X H4X H4X!

    Joined:
    Apr 4, 2007
    Messages:
    2,465
    Location:
    GBATemp factory.
    Country:
    Denmark
    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

    Member Prime GBAtemp Psycho!

    Joined:
    Nov 7, 2007
    Messages:
    3,664
    Location:
    Under your bed
    Country:
    United Kingdom
    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

    Member tredes GBAtemp Regular

    Joined:
    Mar 17, 2008
    Messages:
    180
    Country:
    Australia
    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

    Member Prime GBAtemp Psycho!

    Joined:
    Nov 7, 2007
    Messages:
    3,664
    Location:
    Under your bed
    Country:
    United Kingdom
    Well just keep a eye on this thread. Hopefully arctic_flame will write back.
     
  11. arctic_flame

    Member arctic_flame GBAtemp ATMEGA8 Fan

    Joined:
    Nov 4, 2006
    Messages:
    2,840
    Location:
    England land
    Country:
    United Kingdom
     
  12. Prime
    OP

    Member Prime GBAtemp Psycho!

    Joined:
    Nov 7, 2007
    Messages:
    3,664
    Location:
    Under your bed
    Country:
    United Kingdom
    [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG]

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

    Member arctic_flame GBAtemp ATMEGA8 Fan

    Joined:
    Nov 4, 2006
    Messages:
    2,840
    Location:
    England land
    Country:
    United Kingdom
  14. Prime
    OP

    Member Prime GBAtemp Psycho!

    Joined:
    Nov 7, 2007
    Messages:
    3,664
    Location:
    Under your bed
    Country:
    United Kingdom
    Thanks.

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

    Member arctic_flame GBAtemp ATMEGA8 Fan

    Joined:
    Nov 4, 2006
    Messages:
    2,840
    Location:
    England land
    Country:
    United Kingdom
    Don't get discouraged. However, I would learn some C(++) first [​IMG] then write software for specific systems later.
     

Share This Page