This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Why is the performance of 32bit program worse than 64bit program running on the same 64bit system, They are compiled from same source. Which gcc option can fix it?
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Xinrong Fu <fxinrong at gmail dot com>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Tue, 25 Mar 2014 10:12:50 +0000
- Subject: Re: Why is the performance of 32bit program worse than 64bit program running on the same 64bit system, They are compiled from same source. Which gcc option can fix it?
- Authentication-results: sourceware.org; auth=none
- References: <CAGk-QBvmivv9TVfac+bm27FXrOmp5exrDtTwVm7TEasEeAQ1+w at mail dot gmail dot com> <533155FD dot 9000105 at westcontrol dot com>
On 25 March 2014 10:10, David Brown wrote:
>
> One thing I notice from your post is that you are compiling without
> enabling optimisation, which cripples the compiler's performance.
Performance comparisons on unoptimised code are worthless.