CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

PIC24 - Reproducable compiler crash v4.135

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
kam



Joined: 15 Jul 2005
Posts: 59

View user's profile Send private message

PIC24 - Reproducable compiler crash v4.135
PostPosted: Mon Aug 06, 2012 2:46 pm     Reply with quote

Hi all,

Okay, trying to debug why I'm getting "issues" using structures, and I came across this crash! Sad Sad Sad

Just the act of compiling caused the compiler v4.135 to crash/lockup/die.

Code:

#include <24HJ128GP306.h>
#include <stdio.h>
#include <string.h>

#IGNORE_WARNINGS 203
#zero_ram

#FUSES HS
#FUSES NOWDT
#FUSES PR

#use delay(clock=40Mhz, crystal=20Mhz)

// THIS LINE CAUSES A COMPILER CRASH!!!
char *pExternalCommand[] =
{
    "AAAA",
    "BBBB",
    "CCCC",
    NULL
};

void main()
{
    printf("Sleeping\r\n");
    while (1);
}


Thoughts?

~Kam
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Aug 06, 2012 2:59 pm     Reply with quote

It fails with the PCH compiler as well. I found the actual problem quickly
by commenting out the "weirdest" line. What's the line most likely to
cause a problem ? What's the strangest thing, at least in terms of CCS's
ability to handle things ? Comment that line out and you'll see what the
problem is.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group