User forums > General (but related to Code::Blocks)

Adding assembler as a compiler

(1/4) > >>

sparhawk:
Since I started to use CB now permanently as a replacement for Visual Studio, I wanted to be able to use a project wizard for creating assembly only projects (MASM in this case). As far as I understand it, currently this should be done by us ing a makefile, which I don't really want.
I looked into the CB directory and got the impression that compiler support is done via configuration XML files, so I wouldn't need to do actual code changes, is this correct? is there somehwere a detailed documentation on how a compiler is set up, so I don't have to figure everything out on my own? :)

oBFusCATed:
Read the source or the xml files for the other compilers.
Unfortunately there are no docs for this feature yet.

sparhawk:
I already managed to setup the files and project wizard, as well as a compiler entry. I simply used the existing XML files as a templated and changed them accordingly.
What I did not figure out yet though is, how to get rid of the common compiler switches which are located in: CB\share\CodeBlocks\compilers\options_common_warnings.xml

Is this somewhere included hardcoded? I haven't seen any file that includes this so I haven't found any way to get rid of this yet. Which means that the switches for the assembler are currently mixed with the generic C switches.

At the moment I don't see how I can override those or get rid of them entirely.

oBFusCATed:
There is an include tag. Search for common_warnings or just warnings.

Alpha:
Are the compiler file (compiler_*.xml) and compiler options file (options_*.xml) what you are looking for?  (They *should* contain a description all available features... I am not completely certain if something was missed, though.)

Navigation

[0] Message Index

[#] Next page

Go to full version