Author Topic: How compile asm files?  (Read 11255 times)

Offline Borneq

  • Multiple posting newcomer
  • *
  • Posts: 45
How compile asm files?
« 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?

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
Re: How compile asm files?
« Reply #1 on: June 09, 2011, 10:02:37 am »
U'll have to define ur assembler command line for the extension i.e. '.asm'.

Offline Borneq

  • Multiple posting newcomer
  • *
  • Posts: 45
Re: How compile asm files?
« Reply #2 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?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: How compile asm files?
« Reply #3 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.
« Last Edit: June 09, 2011, 02:51:29 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Borneq

  • Multiple posting newcomer
  • *
  • Posts: 45
Re: How compile asm files?
« Reply #4 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).?