News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Compiling assembler/assembly code

Started by mconsidine, January 16, 2009, 12:49:08 AM

Previous topic - Next topic

mconsidine

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

MortenMacFly

Quote from: mconsidine on January 16, 2009, 12:49:08 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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]