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

Adding assembler as a compiler

<< < (2/4) > >>

sparhawk:

--- Quote from: oBFusCATed on March 20, 2014, 08:16:27 pm ---There is an include tag. Search for common_warnings or just warnings.

--- End quote ---

Well, that's exactly what I did as my first approach and I was surprised that I didn't find anything including it. I haven't tried with just "warnings" so I will do that as well.


--- Quote from: Alpha on March 20, 2014, 11:36:00 pm ---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.)

--- End quote ---

Of course those were the first files I looked into, but I don't really see a complete documentation (didn't know about the wiki so thanks fo rthat pointer). I just went by looking at the different examples. Seems to work well enough, but some thigns I don't understand. For example that exec tag is unclear to me. I have an idea what it probably does, but not exactly.

stahta01:
Try looking at this file "compileroptionsdlg.cpp"; it might be what you want.

Tim S.

stahta01:

--- Quote from: sparhawk on March 20, 2014, 07:49:54 pm ---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.

--- End quote ---

If you have NOT got rid of the C/C++ options post your XML file.

I just tried making a custom compiler with no options and it seems to have worked; but, I did create cpp and h files to do it.

FYI:

The lines below include the file options_common_cmds.xml, options_common_re.xml, and options_common_sort.xml


--- Code: ---    <Common name="cmds"/>

    <Common name="re"/>

    <Common name="sort"/>

--- End code ---

Tim S.

sparhawk:

--- Quote from: stahta01 on March 22, 2014, 04:28:27 pm ---I just tried making a custom compiler with no options and it seems to have worked; but, I did create cpp and h files to do it.
--- End quote ---

Not sure what you mean by that. Do you mean you modified it in the code?


--- Quote ---The lines below include the file options_common_cmds.xml, options_common_re.xml, and options_common_sort.xml


--- Code: ---    <Common name="cmds"/>

    <Common name="re"/>

    <Common name="sort"/>

--- End code ---

Tim S.


--- End quote ---

Thanks! That was exactly the problem. :) Removing those, got rid of the unwanted options. :)

So now I have to figure out where those include paths and librarries come from. They are from the sample where I took it, from so I have to figure out how to get rid of them.

I can already setup a project now and assemble it but not link it currently. :)

If there is interest for this, I can contribute the files that I created to CB.

stahta01:

--- Quote from: sparhawk on March 22, 2014, 05:03:43 pm ---
--- Quote from: stahta01 on March 22, 2014, 04:28:27 pm ---I just tried making a custom compiler with no options and it seems to have worked; but, I did create cpp and h files to do it.
--- End quote ---

Not sure what you mean by that. Do you mean you modified it in the code?


--- End quote ---

Yes, I modified the source code; which included adding two files.
Therefore, the source code needed recompiled.
I was thinking that was needed to get rid of the options; but, it did NOT seem to be true.

Tim S.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version