Compiler out of memory

Author
MartinNewell
New Member
  • Total Posts : 5
  • Reward points : 0
  • Joined: 2016/05/26 14:43:03
  • Location: 0
  • Status: offline
2018/12/05 18:55:57 (permalink)
0

Compiler out of memory

Problem: A compile is failing in MPLab X with the message:
 
"Error : The compiler is OUT OF MEMORY, total of 4500000 byte allocated"
 
The same source code with the same compiler compiles with no errors under MPLab 8.92. A slightly earlier version of the source code with a few less lines of code compiles without error in MPLab X.
 
I assume MPLab X provides the space in which the compiler runs. If this is true, how can I increase the amount of space provided?
 
A few more details:
MPLab X version 5.05
Compiler is CC5X 3.6
Target chip is 16F1829 mid-range.
 
I have been using MPLab X with the same compiler for various developments of the same source code for over a year with no issues like this. Any suggestions would be much appreciated.
#1

5 Replies Related Threads

    qhb
    Superb Member
    • Total Posts : 7898
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: offline
    Re: Compiler out of memory 2018/12/05 19:06:42 (permalink)
    +1 (1)
    That seems strange.
    Have you tried asking the author of CC5X?
    What made you pick that compiler in preference to XC8?
     
    #2
    Ian.M
    Super Member
    • Total Posts : 13160
    • Reward points : 0
    • Joined: 2009/07/23 07:02:40
    • Location: UK
    • Status: offline
    Re: Compiler out of memory 2018/12/05 22:17:22 (permalink)
    +1 (1)
    Compare the MPLAB 8 and X compiler command lines, looking for different options passed to the compiler . . .

    --
    NEW USERS: Posting images, links and code - workaround for restrictions.
    I also support http://picforum.ric323.com because this forum is sometimes too broken to use!
    #3
    MartinNewell
    New Member
    • Total Posts : 5
    • Reward points : 0
    • Joined: 2016/05/26 14:43:03
    • Location: 0
    • Status: offline
    Re: Compiler out of memory 2018/12/06 00:10:59 (permalink)
    0
    Thank you for the suggestions.
    I have emailed CC5X support and am awaiting a response.
    The only difference in the command lines to the compiler are that the X version requests a COFF debugging file but the 8.92 version requests a COD debugging file.  This seems to be a necessary difference. 
    I have rebuilt the project from scratch in MPLab X, but get the same result.
     
    #4
    Ian.M
    Super Member
    • Total Posts : 13160
    • Reward points : 0
    • Joined: 2009/07/23 07:02:40
    • Location: UK
    • Status: offline
    Re: Compiler out of memory 2018/12/06 00:57:32 (permalink)
    +2 (2)
    Does it give an out of memory error if you use the same compiler command line (after Netbeans environment variable substitution) as MPLaB X from a CMD prompt without MLAB X running?   

    --
    NEW USERS: Posting images, links and code - workaround for restrictions.
    I also support http://picforum.ric323.com because this forum is sometimes too broken to use!
    #5
    MartinNewell
    New Member
    • Total Posts : 5
    • Reward points : 0
    • Joined: 2016/05/26 14:43:03
    • Location: 0
    • Status: offline
    Re: Compiler out of memory 2018/12/06 10:33:41 (permalink)
    +3 (3)
    Problem solved! The issue was something in the CC5X compiler.  Latest release 3.7C does not have this problem.
    Thank you for the responses, which were helpful.
    #6
    Jump to:
    © 2018 APG vNext Commercial Version 4.5