Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: pisco on January 17, 2010, 06:18:44 pm

Title: Assembler in code::blocks
Post by: pisco on January 17, 2010, 06:18:44 pm
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
Title: Re: Assembler in code::blocks
Post by: MortenMacFly on January 17, 2010, 07:18:59 pm
I want to learn assembler and need a compiler(assembler).
GCC handles assembly just fine.
Title: Re: Assembler in code::blocks
Post by: pisco on January 17, 2010, 07:27:44 pm
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
Title: Re: Assembler in code::blocks
Post by: MortenMacFly on January 17, 2010, 07:44:03 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.
Title: Re: Assembler in code::blocks
Post by: pisco on January 17, 2010, 07:59:28 pm
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
Title: Re: Assembler in code::blocks
Post by: MortenMacFly on January 17, 2010, 09:27:27 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.
Title: Re: Assembler in code::blocks
Post by: pisco on January 17, 2010, 09:34:22 pm
thx a lot for your answer MortenMacFly. One last quesition:

Is it possible to integrated this assembler in code::blocks?

greetz
Title: Re: Assembler in code::blocks
Post by: MortenMacFly on January 17, 2010, 09:39:45 pm
thx a lot for your answer MortenMacFly. One last quesition:

Is it possible to integrated this assembler in code::blocks?
Did you read my last post? :shock:

GREETZ. :lol:
Title: Re: Assembler in code::blocks
Post by: TerryP on January 18, 2010, 05:50:24 am
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)