linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Landon Blake" <lblake@ksninc.com>
To: linux-assembly@vger.kernel.org
Subject: Using C Libraries From Assembly
Date: Mon, 29 Aug 2005 12:13:50 -0700	[thread overview]
Message-ID: <0D544207876CDA428F17DD7EA448C192088AC0@bailey.DOMAIN.KSNINC.PVT> (raw)

Linux Assembly Programmers,

I had posted an earlier message about adding graphics to an assembly
language program. After some research the past couple of days it seems
that most available, open source graphics libraries provide a C API. I
would like to add graphics capabilities to the simple programming
language I want to write in assembly.

So, my next question is this:

Can you call C functions from a program written in assembly language?
I've googled this subject, but was only able to find one paragraph that
didn't seem to help much. Most information seems to deal with going the
other direction, that is, calling assembly from C functions. However,
I'm guessing that it is possible, since both languages end up as machine
code at some point. Are there any resources that explain how to do this?

Thanks for all the help.

Landon

             reply	other threads:[~2005-08-29 19:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-29 19:13 Landon Blake [this message]
2005-08-29 19:32 ` Using C Libraries From Assembly Tim Hoolihan
2005-08-29 20:37   ` Stephen Ray
2005-08-30  9:17 ` Stephen Pelc
2005-08-30 14:23   ` Richard Cooper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0D544207876CDA428F17DD7EA448C192088AC0@bailey.DOMAIN.KSNINC.PVT \
    --to=lblake@ksninc.com \
    --cc=linux-assembly@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).