[fpc-devel] Sparc < v9

Mark Morgan Lloyd markMLl.fpc-devel at telemetry.co.uk
Sat Jul 9 00:40:30 CEST 2011


Ludo Brands wrote:
> membar and stbar are instructions available as of sparc v9. To get fpc
> running on a sparc <v9 I have commented out
> def_system_macro('FPC_HAS_MEMBAR'); in compiler/options.pas. Is there a
> command line option that does the same? 

I wonder whether this would be worth considering on a per-OS basis? 
Working from memory, when I last looked I think that Linux initialised 
the processor to a mode where it didn't reorder memory accesses so (if 
my recollection of the documentation is correct) didn't require membars, 
in which case an RTL startup check for an unexpected mode should suffice.

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]



More information about the fpc-devel mailing list