Boost logo

Boost :

From: Tobias Schwinger (tschwinger_at_[hidden])
Date: 2007-09-17 14:57:55


John Maddock wrote:
> Larry Evans wrote:
>> On 09/16/07 16:56, Achilleas Margaritis wrote:
>>> Dear boost developers,
>>>
>>> You can find a new version of my portable precise C++ garbage
>>> collector in vault/memory.
>>>
>> The file:
>>
>> src/cppgc.cpp
>>
>> contains:
>>
>> void __fastcall _gc_traits::scan(register void *ptr) {

Don't use __fastcall because it's faster - it's probably not!

It dictates the compiler how to arrange the registers, which can result
in less efficient code (spilling on the stack for reordering).

>> is __fastcall portable?
>
> No it's an MSVC'ism.

Interesting... Are you sure (as it's most prominently used by Delphi)?

Regards,
Tobias


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk