POV-Ray : Newsgroups : povray.off-topic : Linking : Re: Linking Server Time
1 Jul 2024 01:59:14 EDT (-0400)
  Re: Linking  
From: jr
Date: 28 May 2016 07:23:51
Message: <57497fc7$1@news.povray.org>
hi,

On 28/05/2016 08:47, Orchid Win7 v1 wrote:
> So here's a question: how does linking actually work?

can't answer all of your questions, but here goes:

you're right about the jump-table.  google / search docs for "GOT"
(global offset table).

the .o files aren't "raw machine code".  afaik, GCC uses an intermediary
language ("gimple") which allows creating programs/libs where different
TUs may be written in different languages (C, Ada, etc).  see the docs
on the '-flto' (link time optimisation) compiler and '-Wl,-flto' linker
options.

jr.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.