Search:

Type: Posts; User: CornedBee

Search: Search took 0.10 seconds.

  1. Replies
    43
    Views
    9,238

    Any *tor that is explicitly defined is dead...

    Any *tor that is explicitly defined is dead weight if that definition doesn't do anything the compiler wouldn't do. But that has nothing to do with whether the thing is inlined or not.
  2. Replies
    43
    Views
    9,238

    Moreover, the executable can contain code like...

    Moreover, the executable can contain code like this:

    for every file in directory
    if file is a shared library
    load shared library
    if shared library contains plugin init function
    ...
  3. Replies
    43
    Views
    9,238

    That's compiler-specific. Most use GCC's...

    That's compiler-specific. Most use GCC's __attribute__ syntax.
    E.g.

    __attribute__((visibility("hidden"))) void fn(); // Function is not visible outside the module....
  4. Replies
    43
    Views
    9,238

    ELF visibility is whether other modules of the...

    ELF visibility is whether other modules of the program can import a function. It applies equally to shared libraries (.so) as to core executables - ELF doesn't see much of a difference between them....
  5. Replies
    43
    Views
    9,238

    Depends. What did you set its visibility to? In...

    Depends. What did you set its visibility to? In ELF systems, all symbols have external visibility by default, so the compiler can't remove them - a shared object might want to load the function.
  6. Replies
    43
    Views
    9,238

    Eh? I thought LTO was still an experimental...

    Eh? I thought LTO was still an experimental branch of the current GCC development.
Results 1 to 6 of 6