www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - Inline asm in naked inline C++ functions - fat??

↑ ↓ ← "The Dr ... who?" <thedr who.com> writes:
It seems as though DMC++ generates code for inline functions if they're
__declspec(naked) and have asm blocks, even if they're not used. Is this
apparent
phenomenon known?
Jun 13 2004
↑ ↓ "Walter" <newshound digitalmars.com> writes:
"The Dr ... who?" <thedr who.com> wrote in message
news:cah4re$29sp$1 digitaldaemon.com...
 It seems as though DMC++ generates code for inline functions if they're
 __declspec(naked) and have asm blocks, even if they're not used. Is this

 phenomenon known?

Yes. But if they are unused, the linker will throw them away.
Jun 13 2004
↑ ↓ "Matthew" <admin stlsoft.dot.dot.dot.dot.org> writes:
"Walter" <newshound digitalmars.com> wrote in message
news:caj1ii$1sut$1 digitaldaemon.com...
 "The Dr ... who?" <thedr who.com> wrote in message
 news:cah4re$29sp$1 digitaldaemon.com...
 It seems as though DMC++ generates code for inline functions if they're
 __declspec(naked) and have asm blocks, even if they're not used. Is this

 phenomenon known?

Yes. But if they are unused, the linker will throw them away.

That happens at the time the .lib is linked to the .exe/.dll, rather than at the time the .lib is formed??
Jun 13 2004
↑ ↓ → "Walter" <newshound digitalmars.com> writes:
"Matthew" <admin stlsoft.dot.dot.dot.dot.org> wrote in message
news:caj8k3$29jk$1 digitaldaemon.com...
 "Walter" <newshound digitalmars.com> wrote in message
 news:caj1ii$1sut$1 digitaldaemon.com...
 "The Dr ... who?" <thedr who.com> wrote in message
 news:cah4re$29sp$1 digitaldaemon.com...
 It seems as though DMC++ generates code for inline functions if



 __declspec(naked) and have asm blocks, even if they're not used. Is



 apparent
 phenomenon known?

Yes. But if they are unused, the linker will throw them away.

That happens at the time the .lib is linked to the .exe/.dll, rather than

 time the .lib is formed??

If the function is in a 'COMDAT' record, the linker will not insert it in the exe file if it is not referenced.
Jun 14 2004