Inline functions have addresses?

J

James Kanze

Strictly speaking, isn't it something that complicates the *linker*
rather than the compiler itself (other than the compiler having to
generate instructions for the linker to merge the static variables
into one)?

The standard doesn't make a distinction between the compiler and
the linker.

In practice, however, I'm sceptical about the added
complication. The necessary "complexity" is no more than is
required for Fortran's named common, and has been present in
every linker I've ever seen. About the only "added complexity"
I see is having to generate a unique name for the variable. But
the complexity is, I believe, the official argument.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,954
Messages
2,570,116
Members
46,704
Latest member
BernadineF

Latest Threads

Top