A couple of points. First, upgrade to v2.20.01 of the compiler. Second, the C17
compiler will most likely not compile something like Dhrystone without source
code modifications being made. For example, because the compiler allows data in
program memory, the type of a string constant is not compatible with "const char
*" as it is in strict ANSI C. The suite code will need to be modified to account
for differences such as this.
James Grosbach
Microchip Technology
____________________Reply Separator____________________
Subject: Re: Compiler Crash on Dhrystone Compilation...
Author: spam_OUTpaulosaTakeThisOuT
SERVER.META.COM.BR (Paulo S‡)
Date: 11/9/98 9:52 AM
Hi everyone,
Just now I test the standard version C17 version 2.1 (NOT the demo version)
and get the SAME problems that I related bellow. Is there some one that can
help me???
Regards,
Paulo Sa'
E-Mail: .....paulosaKILLspam
@spam@meta.com.br
Meta Telecomunicacoes S/A
Fone/Fax: 55-51-337-1977 Ext: 250
----------
{Quote hidden}> Dear Sir(s),
>
> I'm dealing with a compiler C17 V2.1 demo crash problem when
> I try to compile the Dhrystone sources attached. I'm tryng to do
> a benchmark on code size generated and performance when
> compared to other processors/compilers (80251/C251 from Keil
> and 68HC08/C08 from Cosmic). I use the Visual C++ 1.5 from
> Microsoft and the C251 from Keil to compile all of then and I get
> the code, despite the warning messages generated.
> I'll appreciate very much any help.
>
> Here are the data I have untill now using the C17 V2.1 demo:
> 1. Source DHRY.C: I get the following message:
> C:\PROGS\MPLAB\mcc\Examples\DHRY>c17demo /w1 /Ms /dNOENUM /p=17C756
dhry.c
> MPLAB-C17 v2.10 (demo)
> Copyright 1997, 1998 Microchip Technology Inc.
> The instruction at 0x0043bc99 referenced memory at 0xffffffff.
> The memory could not be read.
>
> 2. DHRY1.C: I get to many compiler errors.
>
> 3. DHRY2.C: It's DHRY1.C, trying to remive the errors. I get the message:
> C:\PROGS\MPLAB\mcc\Examples\DHRY>c17demo /w1 /Ms /dNOENUM /p=17C756
dhry2.c
{Quote hidden}> MPLAB-C17 v2.10 (demo)
> Copyright 1997, 1998 Microchip Technology Inc.
> Stack Overflow!
>
> 4. DHRY3.C: It's DHRY2.C. I was able to compile them WITH the functions
> Proc1 e Proc3 commented (see "/// Stack Overflow Problem!!!" comment
> in the file FUNCS.C), so the stack overflow compiler problem is inside
> this functions.
>
> Hopping that someone help me,
> Best Regards,
> Paulo Sa'
>
> E-Mail:
paulosa
KILLspammeta.com.br
> Meta Telecomunicacoes S/A
> Fone/Fax: 55-51-337-1977 Ext: 250