I am using the demo version of this so I don't have an elaborate help section that I know of at this time. > -----Original Message----- > From: John W. Temples [SMTP:john@KUWAIT.NET] > Sent: Tuesday, April 14, 1998 5:00 PM > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: Byte Craft (MPLABC) to HITECH C compiler > > On Tue, 14 Apr 1998, John Bellini wrote: > > > How do you redefine the following from Byte Craft C compiler to > HITECH? > > The HITECH C compiler keeps giving me a "constant expression > required" > > error. > > > > char val[10] @ string[32]; // note this resides within string[] > > char val2[7] @ string[42]; // saved string for 2 variable > displays > > I would imagine you could do this using proper C with the Hi-Tech > compiler by using a union. The Hi-Tech compiler uses "@" to locate > variables at specific hardware addresses; that's why you're getting > the > "constant expected" error -- it's looking for a physical memory > address. > > > It also does not like this sort of definition. > > bits special; // special handling, bank max. > > bits system_flags1; // system flags > > bits system_flags2; // system flags > > Look at Hi-Tech's "bit" type. > > > I looked at the help section but there is not much about what you > can > > and cannot do in regards to C syntax. > > All of the above is documented in the manual that's on the CD in the > "Features and Runtime Environment" section. > > -- > John W. Temples, III || Providing the first public access > Internet > Gulfnet Kuwait || site in the Arabian Gulf > region