Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 4 of 4

Thread: Teensy 2 -- Program is too big when I remove code?!?

  1. #1
    Senior Member
    Join Date
    Jun 2013
    Posts
    240

    Teensy 2 -- Program is too big when I remove code?!?

    I have a Teensy 2 based product that is sitting at 99% program space usage. I literally have 4 bytes left.

    I'm trying to make room to add a new feature, but I'm facing a peculiar situation. When I remove some old legacy code from the project, the entire program gets bigger and no long fits on the Teensy. How can this be possible?

    Rob

  2. #2
    Senior Member
    Join Date
    Dec 2016
    Location
    Canada
    Posts
    832
    it could be anything, but without code its hard to guess.....

  3. #3
    Senior Member
    Join Date
    Jun 2013
    Posts
    240
    We'll I'm just not going to post 32,254 bytes of code. Anyway, I managed to implement the feature and amazingly I still have 2 bytes to spare.

  4. #4
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    16,229
    That is very strange indeed. Even with all the source code, it'd probably take quite a lot of effort to really learn why the code size went up.

    Glad you found a solution.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •