Author Topic: Compiling assembler/assembly code  (Read 7046 times)

Offline mconsidine

  • Multiple posting newcomer
  • *
  • Posts: 10
Compiling assembler/assembly code
« 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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Compiling assembler/assembly code
« Reply #1 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ