Monday, September 01, 2003 1:34:59 PM
Nope. Recompiling the code in 64 bits should get you 0-15% slowdown. That is normal due to the larger variables. Extra registers on AMD64 give some of the lost performance back, sometimes more than what was lost when going to 64 bits. System libraries is the OS concern, and it seems like they can add a little to the slowdown. However, all this is well worth the extra address space!
It's no problem to use 32bit int everywhere. And if you define "int" variables then these should be 32bit. Recompiled apps will still use 32bit then. BTW using them doesn't require a REX prefix byte for the first 8 regs. Below I listed some URLs where you can verify the effect of 8 additional regs both for Int and FP code.
Most pointers and address immediate values are 64bit then - that has the disadvantages that it needs more bytes in the cache and it could push some code bytes out of a decoder window (resulting in less decoded instructions during that cycle).
I'd like to see what GCC and PGI will produce for 64bit mode when their produced code matches the performance of the Intel compilers on the same platform (32bit). And we don't have results for any .NET compilers.
Regards,
DDB
http://www.digit-life.com/articles2/insidespeccpu/insidespeccpu2000-opteron2.html
http://www.ixbt.com/cpu/cpu-spec2k/pc2/gcc_int.swf
http://www.ixbt.com/cpu/cpu-spec2k/pc2/gcc_fp.swf
http://www.ixbt.com/cpu/cpu-spec2k/pc2/pgi_int.swf
http://www.ixbt.com/cpu/cpu-spec2k/pc2/pgi_fp.swf
It's no problem to use 32bit int everywhere. And if you define "int" variables then these should be 32bit. Recompiled apps will still use 32bit then. BTW using them doesn't require a REX prefix byte for the first 8 regs. Below I listed some URLs where you can verify the effect of 8 additional regs both for Int and FP code.
Most pointers and address immediate values are 64bit then - that has the disadvantages that it needs more bytes in the cache and it could push some code bytes out of a decoder window (resulting in less decoded instructions during that cycle).
I'd like to see what GCC and PGI will produce for 64bit mode when their produced code matches the performance of the Intel compilers on the same platform (32bit). And we don't have results for any .NET compilers.
Regards,
DDB
http://www.digit-life.com/articles2/insidespeccpu/insidespeccpu2000-opteron2.html
http://www.ixbt.com/cpu/cpu-spec2k/pc2/gcc_int.swf
http://www.ixbt.com/cpu/cpu-spec2k/pc2/gcc_fp.swf
http://www.ixbt.com/cpu/cpu-spec2k/pc2/pgi_int.swf
http://www.ixbt.com/cpu/cpu-spec2k/pc2/pgi_fp.swf
Recent AMD News
- Form 144 - Report of proposed sale of securities • Edgar (US Regulatory) • 04/15/2026 08:14:05 PM
- AMD to Report Fiscal First Quarter 2026 Financial Results • GlobeNewswire Inc. • 04/08/2026 08:15:00 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 04/08/2026 08:12:07 PM
- Form 144 - Report of proposed sale of securities • Edgar (US Regulatory) • 04/06/2026 08:14:57 PM
- Form ARS - Annual Report to Security Holders • Edgar (US Regulatory) • 03/27/2026 08:18:49 PM
- Form DEFA14A - Additional definitive proxy soliciting materials and Rule 14(a)(12) material • Edgar (US Regulatory) • 03/27/2026 08:16:34 PM
- Form DEF 14A - Other definitive proxy statements • Edgar (US Regulatory) • 03/27/2026 08:14:59 PM
- Intel shares rise after report of planned CPU price increases • IH Market News • 03/25/2026 03:24:25 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 03/18/2026 08:16:11 PM
- Advances in Domestic Heavy Rare Earth Minerals Production Essential for North American Defense Stockpiles • GlobeNewswire Inc. • 03/18/2026 01:00:00 PM
- Advances in Domestic Heavy Rare Earth Minerals Production Essential for North American Defense Stockpiles • InvestorsHub NewsWire • 03/18/2026 01:00:00 PM
- China Controls the Metal Underlying America's Trillion-Dollar Tech Economy - OilPrice.com Market Commentary • PR Newswire (US) • 03/17/2026 12:00:00 PM
- China Controls the Metal Underlying America's Trillion-Dollar Tech Economy - OilPrice.com Market Commentary • PR Newswire (Canada) • 03/17/2026 12:00:00 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 03/16/2026 08:48:06 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 03/13/2026 08:07:18 PM
- Form 144 - Report of proposed sale of securities • Edgar (US Regulatory) • 03/12/2026 08:23:15 PM
- The Drone Revolution's Dependence on Chinese Rare Earth Processing - OilPrice.com Market Commentary • PR Newswire (Canada) • 03/11/2026 02:45:00 PM
- The Drone Revolution's Dependence on Chinese Rare Earth Processing - OilPrice.com Market Commentary • PR Newswire (US) • 03/11/2026 02:45:00 PM
- Adeia shares gain after signing semiconductor licensing deal with AMD • IH Market News • 03/09/2026 03:42:24 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 03/06/2026 09:13:28 PM
- Form 144 - Report of proposed sale of securities • Edgar (US Regulatory) • 03/04/2026 09:27:23 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 03/03/2026 09:15:06 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 03/03/2026 09:13:03 PM
- AMD unveils Ryzen AI 400 processors at MWC 2026, expanding push into AI-powered PCs • IH Market News • 03/02/2026 03:15:12 PM
