News:

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

Main Menu

Assembler in code::blocks

Started by pisco, January 17, 2010, 06:18:44 PM

Previous topic - Next topic

pisco

Hey,
I want to learn assembler and need a compiler(assembler).
Can I integrate an assembler in code::blocks?
Did you know a good one?

I thank you in advance for your time and look forward to your replys.

Best regards
pisco

MortenMacFly

Quote from: pisco on January 17, 2010, 06:18:44 PM
I want to learn assembler and need a compiler(assembler).
GCC handles assembly just fine.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

pisco

in codeblocks I think gcc is pre-installed. So i only have to save the asm files as .asm

Correct me if i am wrong...

greetz

MortenMacFly

Quote from: pisco on January 17, 2010, 07:27:44 PM
Correct me if i am wrong...
What I meant was inline assembly. So you don't even need to use ASM files. Refer to the GCC manual for more information.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

pisco

but I want to code in pure assembly.

I searched on the internet for an assembler and found nasm (http://en.wikipedia.org/wiki/Netwide_Assembler)
Is it possible to integrated this assembler in code::blocks?

greetz

MortenMacFly

Quote from: pisco on January 17, 2010, 07:59:28 PM
Is it possible to integrated this assembler in code::blocks?
Generally yes, but it's not that easy (you'll need to implement your own compiler).

However, if you only want to code assembler, have a look as RadAsm (http://www.oby.ro/rad_asm) which is pretty good.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

pisco

thx a lot for your answer MortenMacFly. One last quesition:

Quote from: pisco on January 17, 2010, 07:59:28 PM
Is it possible to integrated this assembler in code::blocks?

greetz

MortenMacFly

Quote from: pisco on January 17, 2010, 09:34:22 PM
thx a lot for your answer MortenMacFly. One last quesition:

Quote from: pisco on January 17, 2010, 07:59:28 PM
Is it possible to integrated this assembler in code::blocks?
Did you read my last post? :shock:

GREETZ. :lol:
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

TerryP

If playing with options to the assembler and linker are not a big concern, you can also set C::B to use an custom makefile that handles running as/ld as needed, for whatever assembler you're using.

I usually keep the GNU and Netwide assemblers around, plus the local systems where available (e.g. MASM)
Just Another Computer Geek