Homebrew Maximum code size of program binary in libNDS with devkitPro

Enu

New Member
OP
Newbie
Joined
Jan 19, 2009
Messages
1
Trophies
0
XP
1
Country
United States
I've recently run into an issue developing in devkitPro using libNDS. My program's size can exceed half a meg and I believe causes it to overwrite some video buffers. The data section of the .elf binary (when I use the arm-eabi-size tool) is at 100kb and the bss section is into the megabytes. However the final shrunken .nds size is over half a megabyte and it doesn't display anything in console mode. Removing code files causes the display to be written correctly. Is there a limit for the maximum size of the code in the final binary?

text data bss dec hex
1455884 77724 386756 1920364 1d4d6c (removed code from program and added in lots of data into program binary, still runs and displays okay)

text data bss dec hex
421068 102356 3794636 4318060 41e36c (removed data from program binary, does not display anything in console mode)

I'm not getting any output on the video buffer when I test program variables by printing them out after initiating console mode (consoleDemoInit). So I think my program's large size has caused some of the video buffers to be overwritten. Is there anything that can be done to alleviate this problem? Perhaps by moving some of the video buffers around in memory?

Thanks,

Enu
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • crafthp434 @ crafthp434:
    like i searched all folders
  • NinStar @ NinStar:
    are you using haxchi, tiramisu or aroma?
  • crafthp434 @ crafthp434:
    yeah
  • NinStar @ NinStar:
    no, I'm asking which one of them you are using
  • crafthp434 @ crafthp434:
    aroma
  • NinStar @ NinStar:
    in that case, there is no such thing as homebrew launcher for aroma
  • NinStar @ NinStar:
    you have to launch your homebrews directly from the wii u menu
  • NinStar @ NinStar:
    there is a plugin that display them on the wii u menu, pretty sure it is enabled by default
  • crafthp434 @ crafthp434:
    so like it doesnt exist
  • crafthp434 @ crafthp434:
    yeah
    ?
  • NinStar @ NinStar:
    it doesn't exist, at least not for aroma
  • crafthp434 @ crafthp434:
    ohhhhh
  • NinStar @ NinStar:
    on tiramisu you can access it by opening mii maker
  • crafthp434 @ crafthp434:
    okay
  • NinStar @ NinStar:
    I don't have a wii u anymore to test it myself, but if homebrews are not visible on the wii u menu I think you can press L + R + minus to open the plugin menu, there should be an option called "homebrews on wii u menu" or something similar
  • crafthp434 @ crafthp434:
    nope
  • crafthp434 @ crafthp434:
    it is L+dpad down+ select
  • crafthp434 @ crafthp434:
    but homebrew is appearing in the home menu btw
  • NinStar @ NinStar:
    yes, now I remember it
  • NinStar @ NinStar:
    then it is working, I also don't like that they did this but it is the only option you have if you are using aroma
  • crafthp434 @ crafthp434:
    i just didint know the homebrew launcher didint exist in aroma
  • crafthp434 @ crafthp434:
    thanks btw
  • Xdqwerty @ Xdqwerty:
    Im downloading fallout 3 goty edition
    +1
  • BigOnYa @ BigOnYa:
    I'm downloading more ram for my hamster pc
    BigOnYa @ BigOnYa: I'm downloading more ram for my hamster pc