public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: John Love-Jensen <eljay@adobe.com>
To: Perry Smith <pedz@easesoftware.com>, MSX to GCC <gcc-help@gcc.gnu.org>
Subject: Re: Does a pointer to function have a "Language Linkage"?
Date: Thu, 20 Apr 2006 11:39:00 -0000	[thread overview]
Message-ID: <C06CDCF5.E3C2%eljay@adobe.com> (raw)
In-Reply-To: <7E633211-907D-451E-8F63-A0760AB2C66A@easesoftware.com>

Hi Perry,

>Does a pointer to function have a "Language Linkage"?

I *THINK* (guessing) language linkage *CAN* affect three things:

1. name mangling
  "Do we prepend an underscore?
   Do we C++ mangle the name?
   Do we upper-case-ify?"

2. parameter order on stack
  "Are parameters pushed on left to right?
   Right to left?"

3. who cleans up the stack
  "Does the caller clean up the stack?
   Does the callee clean up the stack?"

For a function pointer, #1 is irrelevant.  #2 and #3 may be relevant,
depending on your platform.

I'm making a *GUESS* here, so I may be completely off base.

If I'm mistaken, I'd be happy to be corrected.

If I missed some, I'd be happy for those additional issues to be brought to
my attention.

HTH,
--Eljay

      reply	other threads:[~2006-04-20 11:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-20  1:39 Perry Smith
2006-04-20 11:39 ` John Love-Jensen [this message]

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=C06CDCF5.E3C2%eljay@adobe.com \
    --to=eljay@adobe.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=pedz@easesoftware.com \
    /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).