User forums > Embedded development
Assembler tools for CB
scarphin:
There has been an ongoing discussion about assembler tools for CB in the topic:
http://forums.codeblocks.org/index.php/topic,19026.msg130238.html#msg130238
A fork named emblocks claims to have some good features which I think can be summarized below:
1- Assembler options (a tab dedicated to assembler options next to compiler and linker) to pass assembler specific options directly to assembler (i.e as).
2- Native assembler support to edit (syntax highlighting would be nice) and assemble the assembly files (.s, .S, .asm whatever) with designated options from feature 1 maybe by intervening between the compiler and linker and then let the linker link them all. As far as I know gcc compiles c/c++ files into assembly first then lets the assembler do its job so this feature doesn't look much unnatural at all. ;)
These 2 options would be a nice enhancement to cb imo, so here they are to discuss.
stahta01:
Another thing the E::B has is a location in the tool chain setting for the hex tool.
The hex tool is needed by many Embedded Compilers.
Hex tool converts object code (Binary) to hex code (ASCII).
Link to images http://community.silabs.com/t5/32-Bit-Discussion/Em-Blocks-IDE-with-EnergyMicro-support/td-p/107147
I think adding the assembler and hextool to the toolchain.
Along with the assembler options would be a good idea.
I have download the open source part of E::B; will look at the SDK changes needed to do the above items I posted.
Tim S.
oBFusCATed:
As far as I know we have syntax highlight for asm files.
Syntax highlight is a job of scintilla, so if your asm variant isn't supported then post a bug report to them.
After they make a lexer for it we can easily expose it in the options.
If it is supported by scintilla and it is not exposed, please say so and I'll expose it (it is pretty trivial task).
About separate options:
What king of options?
Do you want to have check boxes with the most common options?
We could probably add another tab in Build options -> Compiler settings (next to the tab "Other options").
How often do you edit asm files by hand in the embedded world?
In the desktop/server world people (almost) never need to do it.
As far as you probably know it is not problem to add asm files to the build system http://wiki.codeblocks.org/index.php?title=Adding_support_for_non_C/C%2B%2B_files_to_the_build_system
Probably we can add asm support for specific compilers in the trunk version of C::B.
Can you provide patches for the compilers you're using?
oBFusCATed:
Adding the hextool would be a bit more complex and would require more options as far as I can see.
stahta01:
oBFusCATed is likely right in the amount of work for only a small gain might be the result.
So, I will look at the features wanted and how easy it is to solve the problem in another way.
The ToolPlus plugin could likely do the hex convertor operation.
And, a special file property would likely be enough to set assembly file options.
Tim S.
Navigation
[0] Message Index
[#] Next page
Go to full version