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

Compiling from the commandline / using external editor.

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



Joined: 19 Feb 2009
Posts: 7

View user's profile Send private message

Compiling from the commandline / using external editor.
PostPosted: Tue Dec 15, 2009 4:20 am     Reply with quote

The included IDE is so horrendously bad, it's quite simply unbelievable. The number of problems, and the lack of any progress fixing them means I really need to throw the IDE in the bin and use a proper editor and commandline compile. Is this possible? Anyone worked out how?

I want to use my editor of choice (PSPAD): http://www.pspad.com/

Some of my IDE problems:

Impossible to use on Windows7, catastrophic errors, GUI bugs, crashing.

Truncated error and information dialogs on all OS (particularly bad if your change management system /project complexity makes you use quite long path names).

Abysmal Find, worse when using keyboard shortcuts, no highlight/list all.
mgillespie



Joined: 19 Feb 2009
Posts: 7

View user's profile Send private message

PostPosted: Tue Dec 15, 2009 5:08 am     Reply with quote

OK, got a batch file working, so I never have to touch the CCS IDE again. However I can't seem to find if the compiler uses errorlevels on the return to determine if the code compiled correctly. I want to be more intelligent about my post compile handling.

Code:

@echo off
rem CSSC commandline build script, because the IDE is so horrid (I hope their compiler skills are better than their IDE writing skills!)
c:\Progra~1\PICC\Ccsc.exe -T -A -D -L -M -J +FH +DF ..\Source\main.c
type ..\source\main.err
del ..\source\main.err
del ..\source\main.esym
attrib -r ..\Deliverables\MyRealName.hex
attrib -r ..\Deliverables\MyRealName.cof
move ..\source\main.hex ..\Deliverables\MyRealName.hex
move ..\source\main.cof ..\Deliverables\MyRealName.cof


Can I also prevent the esym file being created? I don't need or want it.
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