cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

s88
Journeyman III

How to make gcc NOT to use some registers?

Hi all,

 

My platform is AMD x86-64. Does anyone know what's the option in gcc can only use the general registers not the media registers?

thanks,

 

Dave

0 Likes
3 Replies
avk
Adept III

AFAIK, there are some switches you can use with GCC: -march:SSE2 and so on. What exactly do you mean "media registers": MMX or SSE ones?

0 Likes
s88
Journeyman III

Thanks avk!

 

But I want compiler only to use the general purpose registers. Don't use any XMM or MMX registers.

 

 

0 Likes

well compiling only for i386 should work. but why do you want that it donot use that registers? if you inline assembly you can specify which register you will use.

0 Likes