Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: mconsidine on January 16, 2009, 12:49:08 am

Title: Compiling assembler/assembly code
Post by: mconsidine on January 16, 2009, 12:49:08 am
Hi,
I've looked through the varous forums and searched under a variety of terms, but can't seem to find the answer to this question :
  what are the proper toolchain sequence entries and default compiler directives that are needed to compile assembly code using AS.EXE?

Obviously, AS.EXE ought to be the compiler.  I get that.  Is DLLTOOL and AR used for dynamic and static libraries, respectively?

I am not an assembly person, but got a bit of code (in a .S file) which I would like to compile into a library.  It contains a function I would then like to call from a C program.  So there is some exporting of symbols that has to go on.  But I keep getting tripped up with the C program seeing "undefined references".  (What I had tried to do as compile the assembly with
  as test.s -o test.o
  ar ru libtest.a test.o
then putting libtest.a in the library path for the linker.)

In any case, any help would be appreciated.
Matt
Title: Re: Compiling assembler/assembly code
Post by: MortenMacFly on January 16, 2009, 09:35:40 am
In any case, any help would be appreciated.
Not here as this is not related to C::B. Topic locked.