Other HI-TECH Compilers & Products >> 8051 Legacy Compiler

Pages: 1
jini



Reged: Aug 24 2005
Posts: 2
Evaluation of compiler
      #18590 - Wed Aug 24 2005 09:10 PM

Hi,
evaulating the hi-tech V keil at the moment and I am having some problems getting some code to compile under hi-t.
I am developing for the nrf24e1 (nordic) 8051 varient
For a basic app it was fine and produced some nice tight code compaired to the keil...
And when I try it with real code... it seems to get very confused....

/// here is the code

#define SPI_READ() \
EXIF &= ~0x20; \
SPI_DATA = 0; \
while((EXIF & 0x20) == 0x00);

...

#define SPI_READ_FAST() \
while((EXIF & 0x20) == 0x00); \
EXIF &= ~0x20; \ <----- line 206
spi_out = SPI_DATA; \
SPI_DATA=0;


///////////// some of the error codes

W 206 missing basic type: int assumed
E 206 type redeclared
E 206 ; expected





Post Extras: Print Post   Remind Me!   Notify Moderator  
clydeAdministrator
HI-TECH team member
*****

Reged: Oct 16 2003
Posts: 626
Re: Evaluation of compiler [Re: jini]
      #18592 - Wed Aug 24 2005 09:50 PM

check to make sure you don't have any spaces after the backslashes - the backslash only works as a continuation character if it is the very last character on the line.

I copied your code and it compiled fine for me.

Clyde


Post Extras: Print Post   Remind Me!   Notify Moderator  
jini



Reged: Aug 24 2005
Posts: 2
Re: Evaluation of compiler [Re: clyde]
      #18595 - Thu Aug 25 2005 12:39 AM

Cheers there was a space after one of the backslashes. After that the compiler seems happy enough..

Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 0 anonymous users are browsing this forum.

Moderator:  ndouglas, jtemples, Dan Henry, Andrew L, mikerj, dave g, meisty, josh stevo 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is enabled
      UBBCode is enabled

Rating:
Topic views: 3485

Rate this topic

Jump to

Contact Us | Privacy statement HI-TECH Software

Powered by UBB.threads™ 6.5.5