Port-sparc64 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

SPARC V9: register windows vs. flat register set



I'm not able to find any references in NetBSD sources for GCC -mflat
compiler option. I assume NetBSD only supports the traditional SPARC V9
ABI with register windows.

I'm developing a small hobby OS for SPARC V9 and investigating a hybrid
approach with two ABIs. One ABI with register windows would be used by
the system kernel, another ABI with flat register set would be used by
unprivileged software in order to avoid overheads associated with
spill/fill traps caused by deeply nested functions.

Has anyone seen anything similar implemented before?

Also, is GCC -mflat considered to be flaky as opposed to -mno-flat?
Looks like it was removed in GCC-4.0 and then reinstated again in
GCC-4.7.


Home | Main Index | Thread Index | Old Index