Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Borneq on June 09, 2011, 09:15:36 am

Title: How compile asm files?
Post by: Borneq on June 09, 2011, 09:15:36 am
In http://wiki.codeblocks.org/index.php?title=Adding_support_for_non_C/C%2B%2B_files_to_the_build_system
are described options Settings->Compiler and debugger->Other settings->Advanced options
but which options it must be for assembler files?
Title: Re: How compile asm files?
Post by: scarphin on June 09, 2011, 10:02:37 am
U'll have to define ur assembler command line for the extension i.e. '.asm'.
Title: Re: How compile asm files?
Post by: Borneq on June 09, 2011, 01:59:13 pm
Extension should be 'asm' but how command line?
In Visual Studio is:
Command Line:
  ml -c "-Fl$(IntDir)%(FileName).lst" "-Fo$(IntDir)%(FileName).obj" "%(FullPath)"
Outputs:
  $(IntDir)%(FileName).obj;%(Outputs)

Assembler name is "ml", which is assembler name in Code:Blocks?
Title: Re: How compile asm files?
Post by: stahta01 on June 09, 2011, 02:41:05 pm
Code::Blocks is an IDE/Editor Only it DOES NOT have a Compiler!
You are responsible to know how your Compiler works!

Read the FAQs http://wiki.codeblocks.org/index.php?title=FAQ

Once, you figure out how your Assembler work try reading this link
CB is design to support C/C++ Languages with only very minor support for others; you need to do work to support others.
http://wiki.codeblocks.org/index.php?title=Adding_support_for_non_C/C%2B%2B_files_to_the_build_system

Tim S.
Title: Re: How compile asm files?
Post by: Borneq on June 09, 2011, 03:13:22 pm
In Windows Code:Blocks uses MinGW. There is as.exe, it uses other format asm files  In Windows can I use ml.exe but which asm compiler to use under Linux (or are any compatybility options).?