News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Extensions for embedded executables

Started by oscar, June 24, 2011, 03:06:29 PM

Previous topic - Next topic

oscar

Hi,

I'm using Code::Blocks on Windows to generate executables for an embedded microcontroller. I'm using a custom C compiler and most things are working really well - but this particular compiler always generates executable files with extensions of .binary or .eeprom (i.e. not .exe or .sys)

Is there any way to tell Code::Blocks that the files with these extensions are the final executables? At present, whenever I "build" the project, Code::Blocks always relinks even when the project is up to date. I think it is looking for an output file with a .exe extension, and when it doesn't find one it assumes it needs to relink to generate it.

Thanks,

Oscar.

oBFusCATed

Disable the "auto-generate filename extension" and make sure the output file is the one produced by the compiler
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

scarphin

U can try setting the 'project->properties->build targets' type to 'native'. But be aware that 'native' setting doesn't start the debugger on v10.05 if u're using one.

oscar

Quote from: oBFusCATed on June 24, 2011, 03:18:34 PM
Disable the "auto-generate filename extension" and make sure the output file is the one produced by the compiler
Hi oBFusCATed

I had already disabled "auto-generate filename extension" but manually setting the extension of the output filename prevents the rebuild - thanks.


oscar

Quote from: scarphin on June 24, 2011, 05:30:18 PM
U can try setting the 'project->properties->build targets' type to 'native'. But be aware that 'native' setting doesn't start the debugger on v10.05 if u're using one.


Hi scarphin

Thanks for the suggestion. I will look at adding my own "type" (using "Native" changes the extension to ".sys", but I want ".binary"). I don't need the debugger, so that's ok.


scarphin

U can change the extension by hand, also from the advanced settings of the compiler u're using u can also change the command scripts to add the extension u want but u have to be very careful with that. And if u need debugger support in the future u can try the debugger branch latest nightly.