New Life Games LLC

Homebrew Player Tracking and EFT Systems => NLG Homebrew Player Tracking and EFT Systems => Topic started by: peasoup49 on December 10, 2020, 02:59:26 PM

Title: [SOLVED] What compiler do you use/recommend?
Post by: peasoup49 on December 10, 2020, 02:59:26 PM
I've recently discovered there are differences between IDE's and how much they may limit your programming.


I've found that the Arduino IDE v1.8.13 compiles my program 280 bytes larger than the vMicro Plug-in for Microchip Studio 7.  Doesn't sound like much, but Studio 7 has increased the capacity for the number of IF statements I have in the Status Display page section of code.  Both using the AVRISP programmer.


If you've run across this kind of issue with the Arduino IDE, please let me know.  And what compiler that you decided to switch to.


Thanks.


Arduino IDE v1.8.13 results:
Code: [Select]
Sketch uses 118078 bytes (46%) of program storage space. Maximum is 253952 bytes.Global variables use 1670 bytes (20%) of dynamic memory, leaving 6522 bytes for local variables. Maximum is 8192 bytes.Microchip Studio 7 results:
Code: [Select]
Program TryNumber4 size: 117,798 bytes (used 46% of a 253,952 byte maximum) (38.30 secs)Minimum Memory Usage: 1670 bytes (20% of a 8192 byte maximum)
Title: Re: What compiler do you use/recommend?
Post by: peasoup49 on December 12, 2020, 01:24:12 PM
Just as an FYI for those who might program one of these.  My problem ended up not being the compiler issue I thought it was going to be.  It appears that when you write HUGE webpages requiring lots of code and JavaScript, the compiler doesn't like it.  Plan on your HTML to be smaller than 4kb in size, otherwise your program will hang and you'll beat your head on the keyboard wondering what you've coded wrong.  I was attempting to put a 15kb page into the code.  :talktothehand:


BTW, this information is no where to be found on the Internet or in any documentation.  I discovered this when my problem worsened when I added more JavaScript.  When I went to a bare bones HTML for the page, everything worked.  I didn't change any code for the data processing of the program.
Title: Re: [SOLVED] What compiler do you use/recommend?
Post by: Stayouttadabunker on December 12, 2020, 01:43:24 PM
I know nothing about writing code but it does look like there's a short statement that says 8192 bytes max?
Would that be more than double kb in size?
Title: Re: [SOLVED] What compiler do you use/recommend?
Post by: peasoup49 on December 12, 2020, 02:13:57 PM
I know nothing about writing code but it does look like there's a short statement that says 8192 bytes max?
Would that be more than double kb in size?


Please let me know where you found that.  I searched for "HTML limit", "max page size", etc. and ended up with results about some type of 'enlargement'.  :24:
Title: Re: [SOLVED] What compiler do you use/recommend?
Post by: Stayouttadabunker on December 12, 2020, 02:25:32 PM
 :rotfl:   I slid the bar over to the right?!


Click on photo below to enlarge if needed ...>>>
Title: Re: [SOLVED] What compiler do you use/recommend?
Post by: peasoup49 on December 12, 2020, 02:59:45 PM
That's how much dynamic memory I have on the card.  I've got 253k for program memory.  You had me thinking there for a minute. LOL
Title: Re: [SOLVED] What compiler do you use/recommend?
Post by: Stayouttadabunker on December 12, 2020, 03:09:43 PM
That's how much dynamic memory I have on the card.  I've got 253k for program memory.  You had me thinking there for a minute. LOL
oh! I told you...I know nothing about programming....there's too many languages!!!!  :Tongue_Out:
SimplePortal 2.3.5 © 2008-2012, SimplePortal