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 CCS Technical Support

Compiler generate no hex file

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



Joined: 16 Feb 2025
Posts: 2

View user's profile Send private message

Compiler generate no hex file
PostPosted: Sun Feb 16, 2025 9:27 pm     Reply with quote

Hi

I am trying to compile some old code. I don't see to generate any hex file. I can see it generated a 0 byte .$$$ file and 2 bytes .err file. But now .HEX file.

Any suggestion?

I am running win11 if that's matter.

Here is my command:

Code:
ccsc .\file.c +FM +DF +O8 +T -A +M +Z +Y=9 +EA
Ttelmah



Joined: 11 Mar 2010
Posts: 19701

View user's profile Send private message

PostPosted: Mon Feb 17, 2025 1:13 am     Reply with quote

The options should be before the filename.

ccsc +FM +DF +O8 +T -A +M +Z +Y=9 +EA .\file.c

It is currently not compiling anything.
jmswu1243



Joined: 16 Feb 2025
Posts: 2

View user's profile Send private message

PostPosted: Tue Feb 18, 2025 4:20 pm     Reply with quote

Ttelmah wrote:
The options should be before the filename.

ccsc +FM +DF +O8 +T -A +M +Z +Y=9 +EA .\file.c

It is currently not compiling anything.


I have tried that, it's sill the same result. I am using v3.209 if that any difference.
Ttelmah



Joined: 11 Mar 2010
Posts: 19701

View user's profile Send private message

PostPosted: Wed Feb 19, 2025 2:57 am     Reply with quote

Are you serious!.....
That is so old, I haven't even got it to test. The oldest compiler I have is
20 years old. However looking at the help, the optimisation command
should be +Y9 no equals. You are looking at possibly about a 2002-2003
compiler.
Failing that, I think you should try a clean re-install. I know that historically
sometimes the compiler could get a hiccup where it would not compile,
and this was the fix. Obviously also how are you calling this?. What is the
path statement for the command line you are using?. The compiler might
fail if is cannot find an include file, because the path is wrong, but I
would have expected an error message.
temtronic



Joined: 01 Jul 2010
Posts: 9407
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed Feb 19, 2025 6:29 am     Reply with quote

Here's one I found that might be of that 'era'.

Executing: "C:\Program Files\PICC\Ccsc.exe" "DTCV2.C" +FM +DF +LN +T -A
+M +Z +Y=9 +EA

I know it compiles !
Ill have the OPs compiler version 'somewhere'....as I go back to 2.5xx....
..just have to locate it...wasn't too 'organized' back then though. When I upgraded harddrives, I'd copy the old one as a subfolder..
Ttelmah



Joined: 11 Mar 2010
Posts: 19701

View user's profile Send private message

PostPosted: Wed Feb 19, 2025 7:19 am     Reply with quote

I have a note here, that it doesn't like the .\file format at this time.
I think '\', if not inside inverted commas, is treated as an escape.
So you either have to have inverted commas, or not use a \ in the filename.

I like you go back to V 2.x compilers, but I tidied up all the stuff older
than about 20 years a while ago. Do have them on an optical disk
somewhere, but not on my current system.

One other caveat, is to check if there is a CCSC.INI file in the directory
with the compiler. If this is present, it is read before the commands on
the command line. Could be screwing things up......
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