Quantcast
Channel: The Old New Thing
Browsing all 24428 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

re: Understanding the classical model for linking, groundwork: The algorithm

"selectany" symbols are necessary for:a) member functions defined in the class definition body, when inlining is disabled for debugging;b) vtable;c) identical non-inline template functions (and member...

View Article


Image may be NSFW.
Clik here to view.

re: Understanding the classical model for linking, groundwork: The algorithm

> a) member functions defined in the class definition body, when inlining is disabledThese used to end up static.> b) vtable;It went with the first virtual function.> c) identical non-inline...

View Article


Image may be NSFW.
Clik here to view.

re: Understanding the classical model for linking, groundwork: The algorithm

>> a) member functions defined in the class definition body, when inlining is disabled>These used to end up static.And how would you set breakpoints in them?>> b) vtable;>It went with...

View Article

Image may be NSFW.
Clik here to view.

re: Understanding the classical model for linking, groundwork: The algorithm

@Matt:I'm not positive about this (there is conflicting information), but in C++, functions marked 'inline' still have external linkage. I didn't test, but from the MSDN docs it seems that MSVC is...

View Article

Image may be NSFW.
Clik here to view.

re: Understanding the classical model for linking, groundwork: The algorithm

One more comment on "inline" for the moment.C++03 standard, 7.1.2 [Function specifiers], footnote #79: "The 'inline' keyword has no effect on the linkage of a function". Para 4: "If a function with...

View Article


Image may be NSFW.
Clik here to view.

re: Understanding the classical model for linking, groundwork: The algorithm

>>> a) member functions defined in the class definition body, when inlining is disabled>>These used to end up static.>And how would you set breakpoints in them?Dunno but my debugger...

View Article

Image may be NSFW.
Clik here to view.

re: Understanding the classical model for linking, groundwork: The algorithm

Some linkage models also keep a list of required symbols per symbol rather than per OBJ. This leads to less spurious dependency growth. You can get this behavior in gcc by passing...

View Article

Image may be NSFW.
Clik here to view.

re: Understanding the classical model for linking, groundwork: The algorithm

I've used __declspec(selectany) many times when I needed a module-wide global var. Easier than having it once in a .h, and actually declared in a .c[pp] (or doing macro-trickery to achieve that). Just...

View Article


Image may be NSFW.
Clik here to view.

re: If NTFS is a robust journaling file system, why do you have to be careful...

>> Ultimately, on graceful close, the reserved allocation will be truncated to the current file length, even if there was a reservation.> [Um, the discussion is about what happens when there...

View Article


Image may be NSFW.
Clik here to view.

re: Understanding the classical model for linking: You can override an LIB...

For the printf issue - printf OBJ should not include _fltused.  Yes if the app uses %f and does not use floating point the app will crash, but any app that uses floating formats will itself include...

View Article

Image may be NSFW.
Clik here to view.

re: Understanding the classical model for linking: You can override an LIB...

I think Anonymous123 found it. by knocking out the reference to _fltused in vfprintf's .OBJ (all other *printf call this one), the floating point library is not called in unless used elsewhere. This...

View Article

Image may be NSFW.
Clik here to view.

re: The enduring cultural fascination with Queen's Bohemian Rhapsody

I'll see your B.R. and raise you a "Paradise by the Dashboard Light". We memorized all those songs back then because we had to. There was no YouTube on your smartphone back then or even Walkmen. We had...

View Article

Image may be NSFW.
Clik here to view.

re: Understanding the classical model for linking: Taking symbols along for...

I don't get why you need __fltused.  I thought that something like 1.2 + 3.4 gets compiled into something like __fltadd(1.2, 3.4).  Then you can resolve __fltadd instead of a bogus symbol like __fltused.

View Article


Image may be NSFW.
Clik here to view.

re: The enduring cultural fascination with Queen's Bohemian Rhapsody

To make a classical analogy: Wayne's World's effect on the popularity of Bohemian Rhapsody is similar to Pavarotti's effect on the popularity of "Nessun dorma" from Turandot.

View Article

Image may be NSFW.
Clik here to view.

re: The enduring cultural fascination with Queen's Bohemian Rhapsody

Back to Bohemian Rhapsody, my favourite version from Bad News www.youtube.com/watchFor those of you who don't know (probably most of you) Bad News were a band formed for the BBC's "Comic Strip...

View Article


Image may be NSFW.
Clik here to view.

re: The enduring cultural fascination with Queen's Bohemian Rhapsody

Rolf Harris, Australian Entertainer's version of Bohemian Rhapsody www.youtube.com/watch

View Article

Image may be NSFW.
Clik here to view.

re: The enduring cultural fascination with Queen's Bohemian Rhapsody

To be fair, Bob, the "familiar" phrase is both times used to refer to the same cross-handed piano vamp. I think a better word  would have been "iconic".Interestingly, as a 29 year old with a minor in...

View Article


Image may be NSFW.
Clik here to view.

re: Understanding the classical model for linking: You can override an LIB...

One way to resolve this is to create an (awesome) namespace.

View Article

Image may be NSFW.
Clik here to view.

re: Understanding the classical model for linking: You can override an LIB...

[What if the format string is generated at run time? -Raymond]I didn't think of that one.  Hmm.  Well, you stumped me, Raymond.  I can't think of a way to determine which version of printf to use at...

View Article

Image may be NSFW.
Clik here to view.

re: The enduring cultural fascination with Queen's Bohemian Rhapsody

There is bunch of float point conversion function pointers that are initialized by default to print-error-and-exit trap address.When _fltused is defined by the compiler in any obj file, float-point...

View Article
Browsing all 24428 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>