"position independent" vs "position-independent" in documentation

Sandra Loosemore sandra@codesourcery.com
Tue May 1 04:12:00 GMT 2018


On 04/30/2018 05:56 AM, Jonathan Wakely wrote:
> Should we standardize on "position-independent" and add it to
> https://gcc.gnu.org/codingconventions.html#Spelling ?

The same generic English usage rules apply here as to other compound 
phrases; hyphenate when immediately before a noun, don't hyphenate in 
other contexts.  So "the compiler generates position-independent code" 
and "the compiler generates code that is position independent" are both 
correct.  However, I don't think it's common to use "position 
independent" (hyphenated or not) except as a modifier for "code", so you 
could add "position-independent code" (rather than just 
"position-independent") to the glossary.

-Sandra



More information about the Gcc mailing list