User forums > General (but related to Code::Blocks)

Support for assembly source

(1/2) > >>

colinmac:
I'm trying to build a project that contains a few assembly source files (.s).  Unfortunately the Compiler Settings dialog doesn't allow me to specify an assembler, e.g. the standard GNU as.

Apart from using an external Makefile is there any way for me to tell Code::Blocks to process a .s file?

Thanks,
Colin

colinmac:
A followup on this, for anyone that's interested:  if you select Project / Project Tree / Edit File Types & Categories and add .s and .S to the extensions for Sources then the assembler files will be treated as source files.  This works because gcc will, when presented with assembler source, handle it properly (presumably by invoking the appropriate as executable).

Only problem now is that the editor doesn't open it because 'no handler is registered for this type of file'.  Any suggestions on how to tell the editor that a .s file is OK to open, even just as text?

Colin MacDonald

killerbot:
I think it would be a good idea to have full assembler support. Not all compilers have one exe for all which then internally dispatches to another exe like gcc does.

Pecan:

--- Quote from: colinmac on December 27, 2006, 03:15:31 pm ---Only problem now is that the editor doesn't open it because 'no handler is registered for this type of file'.  Any suggestions on how to tell the editor that a .s file is OK to open, even just as text?

--- End quote ---

When I was working with AngelScript containing assembler, we just named them .cpp files. It worked fine.

tiwag:

--- Quote from: colinmac on December 27, 2006, 03:15:31 pm ---... the editor doesn't open it because 'no handler is registered for this type of file'.  Any suggestions on how to tell the editor that a .s file is OK to open, even just as text?
--- End quote ---

yes - just register the file type yourself
Settings->Environment->Files Extension Handling

additionally you can also define your own syntax highlighting for your .s files,
containing all the assembler commands and compiler directives, if you want...

brgds
--tiwag

Navigation

[0] Message Index

[#] Next page

Go to full version