public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Reed Kotler <rkotler@mips.com>
To: GCC Mailing List <gcc@gcc.gnu.org>
Cc: Richard Sandiford <rdsandiford@googlemail.com>
Subject: __mips16_xxx and .globl
Date: Sat, 31 Aug 2013 06:29:00 -0000	[thread overview]
Message-ID: <521FB81F.4030800@mips.com> (raw)

I have implemented this gcc mips16 floating point scheme in llvm/clang 
and ran into one interesting issue.

In gcc mips16, for all the hard float routines, i.e. __mips16_xxx, gcc 
emits a .globl for them.

It does not do this for other routines like strcmp for example or puts.

If don't remit the .globl's for these in -fPIC mode, then when I run 
this one heavy math use  program, it runs really slow because it seems 
to be constantly in the loader doing something.

If I edit the .s file and add the .globl's then it runs at normal speed.

Does anyone know what the issue would be here?

Without the .globl, the type is UNDEFINED and with the .globl the type 
of OBJECT for these __mips16_xxx routines.

Reed



             reply	other threads:[~2013-08-29 21:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-31  6:29 Reed Kotler [this message]
2013-08-31 13:34 ` Reed Kotler

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=521FB81F.4030800@mips.com \
    --to=rkotler@mips.com \
    --cc=gcc@gcc.gnu.org \
    --cc=rdsandiford@googlemail.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).