make gcc pass the arguments by register
===

On my 32bit Ubuntu11.10, gcc4.6.3 pass the arguments by stack. Is there any gcc optimization that force gcc to pass arguments by registers? And how gcc do that? I want some details, please.