public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Help regarding code optimization
@ 2013-01-13 15:34 Yogesh Tyagi
  2013-01-14 13:52 ` Jonathan Wakely
  0 siblings, 1 reply; 2+ messages in thread
From: Yogesh Tyagi @ 2013-01-13 15:34 UTC (permalink / raw)
  To: gcc-help

Hi,

Can anybody help me to understand why can't gcc optimize the code
using SSE and MMX instructions for any given architecture.Why I need
to write assembly code to use SSE and MMX instructions?

Thanks,
Yogesh

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Help regarding code optimization
  2013-01-13 15:34 Help regarding code optimization Yogesh Tyagi
@ 2013-01-14 13:52 ` Jonathan Wakely
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Wakely @ 2013-01-14 13:52 UTC (permalink / raw)
  To: Yogesh Tyagi; +Cc: gcc-help

On 13 January 2013 13:37, Yogesh Tyagi wrote:
> Hi,
>
> Can anybody help me to understand why can't gcc optimize the code
> using SSE and MMX instructions for any given architecture.Why I need
> to write assembly code to use SSE and MMX instructions?

With the complete lack of details you've supplied noone can really help.

What have you tried? What compiler flags did you use?

What results did you get?

What architecture are you using? Did you tell the compiler to generate
code for that architecture? (As opposed to e.g. for 486)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-01-13 15:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-13 15:34 Help regarding code optimization Yogesh Tyagi
2013-01-14 13:52 ` Jonathan Wakely

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).