How to compile ".s" assembly file in Code::Blocks

5.5k Views Asked by At

How to compile ".s" assembly file in Code::Blocks??

I have a ".s" file, written in AT&T assembly, which is a function.

I have other code in C++.

How can I get the project compiled in Code::Blocks??

Thanks in advance.

Env: I'm using Code::Blocks 13.12 on Ubuntu 14.04, gcc-4.9, and openFrameworks

1

There are 1 best solutions below

0
On BEST ANSWER

Many thanks to arturo as he solved my problem in openFrameworks Forum, answer link:

http://forum.openframeworks.cc/t/how-to-add-assembly-file-into-codeblocks/15942

OpenFrameworks use .S the capital S extension for assembly file under Linux.