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
 

You may also like...

General chit-chat
Help Users
  • AncientBoi @ AncientBoi:
    and 3D printer
  • Psionic Roshambo @ Psionic Roshambo:
    Lol you wouldn't download a hooker!
  • Psionic Roshambo @ Psionic Roshambo:
    Don't copy that floppy!!!
    +1
  • K3N1 @ K3N1:
    If it was Mariah Carey I might download a hooker
  • AncientBoi @ AncientBoi:
    yuk. females
  • K3N1 @ K3N1:
    Yeah straight males are rare these days
  • AncientBoi @ AncientBoi:
    I'd want The Hulk :D He should have something fun to play with :evil:
  • Psionic Roshambo @ Psionic Roshambo:
    Hulk Smash!!!
  • K3N1 @ K3N1:
    Nah hulk gets angry over male compensation
  • Psionic Roshambo @ Psionic Roshambo:
    I wonder if there is Hulk and Shrek fanfic lol
  • Psionic Roshambo @ Psionic Roshambo:
    Hulk smash Shrek's swamp ass!!!
  • AncientBoi @ AncientBoi:
    Straight males pfffft I was in great demand by these so called straight males in my young younger days
  • Psionic Roshambo @ Psionic Roshambo:
    Hulk turns back into banner and Shrek is disappointed
  • K3N1 @ K3N1:
    Wasn't that the entire flick of the movie about the girl turning into an oger I'm sure Shrek 6 will gay shock the world
  • K3N1 @ K3N1:
    Omg he's brown and gay and headlines!
  • Psionic Roshambo @ Psionic Roshambo:
    Shrek finds a new swamp to wallow in.
  • AncientBoi @ AncientBoi:
    Brown? Omg, I think I just flushed him down the tiolet
  • K3N1 @ K3N1:
    Shrek's child comes out of the closet Shrek must learn how to not be cancelled
  • Wish13 @ Wish13:
    wth have I stumbled into
  • Wish13 @ Wish13:
    Oh whatever, I'm not even gonna try to comprehend what this is
  • K3N1 @ K3N1:
    It's a chatbox congrats
    K3N1 @ K3N1: It's a chatbox congrats