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
  • No one is chatting at the moment.
  • Xdqwerty @ Xdqwerty:
    I'm back
  • Xdqwerty @ Xdqwerty:
    I ate pizza
    +1
  • Xdqwerty @ Xdqwerty:
    Awkward silence again
  • Xdqwerty @ Xdqwerty:
    I imagine a family guy cutaway where Peter is in fire emblem and when losing all his health in a battle he does that thing he does when hurting his knee
  • Xdqwerty @ Xdqwerty:
    Alone, alone, alone...
  • Sicklyboy @ Sicklyboy:
    same tho
    +1
  • Xdqwerty @ Xdqwerty:
    Thank god someone came in
  • BakerMan @ BakerMan:
    i just moved on to arena 16 in clash royale
  • BakerMan @ BakerMan:
    i stomped a fkn logbait player
  • Xdqwerty @ Xdqwerty:
    Damn the game weights 451 mb
  • Xdqwerty @ Xdqwerty:
    Thats too much storage
  • Xdqwerty @ Xdqwerty:
    (for a Mobile Game)
  • Xdqwerty @ Xdqwerty:
    Damn, i'm alone again
  • Xdqwerty @ Xdqwerty:
    Good night i guess
  • HiradeGirl @ HiradeGirl:
    It's weird. Thursday/Friday and still not a lot of people here.
  • HiradeGirl @ HiradeGirl:
    @Xdqwerty Good animation. :rofl2:
  • HiradeGirl @ HiradeGirl:
    Is there any chat app for Android or iOS? Like for getting notifications for every new message even if I'm not tagged?
  • Jayro @ Jayro:
    Besides e-mail notifications, I don't believe so.
  • K3Nv2 @ K3Nv2:
    I think you can subscribe to certain threads and enable push notification
  • K3Nv2 @ K3Nv2:
    Or bookmark it using this
    Screenshot-20240222-230124-Brave.jpg
    K3Nv2 @ K3Nv2: Or bookmark it using this