GCC -fPIC option
问题 I have read about GCC\'s Options for Code Generation Conventions, but could not understand what \"Generate position-independent code (PIC)\" does. Please give an example to explain me what does it mean. 回答1: Position Independent Code means that the generated machine code is not dependent on being located at a specific address in order to work. E.g. jumps would be generated as relative rather than absolute. Pseudo-assembly: PIC: This would work whether the code was at address 100 or 1000 100: