Sign in
MSDN Blogs
Microsoft Blog Images
More ...
Common Tasks
Blog Home
Email Blog Author
RSS for comments
RSS for posts
Atom
Search
Tags
Bugs
Developer Info
TypeScript WSH WScript FileSystemObject
X64 ABI Info
Archives
Archives
October 2012
(1)
February 2009
(1)
June 2008
(1)
April 2008
(1)
February 2008
(1)
September 2007
(1)
June 2007
(2)
March 2007
(2)
December 2006
(1)
October 2006
(2)
September 2006
(1)
July 2006
(2)
May 2006
(1)
April 2006
(2)
March 2006
(2)
January 2006
(3)
December 2005
(1)
November 2005
(1)
October 2005
(1)
September 2005
(2)
July 2005
(3)
June 2005
(1)
March 2005
(2)
January 2005
(1)
November 2004
(3)
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
FreiK's WebLog
Goofing around with TypeScript & Windows Script Host
Posted
7 months ago
by
Kevin Frei
3
Comments
I've been horsing around a lot lately with Windows Script Host for various reasons, some more interesting than others. I've actually done a bunch of random things to make it much more palatable under Visual Studio 2012: perhaps I'll share some of that...
FreiK's WebLog
Quick note about x64 Tail call
Posted
over 4 years ago
by
Kevin Frei
1
Comments
A coworker on the CLR dropped by recently, having hit a brick wall about some problem he was having with some ASM code for x64 that was trying to tail call. He has already grep’ed through the ABI docs, and had actually hit this blog prior to knocking...
FreiK's WebLog
What's in a title?
Posted
over 5 years ago
by
Kevin Frei
0
Comments
My wife just asked "What's an 'after-sales engineer'?" I parsed the terms, and came up with "Tech Support Dude". As a teenager, I was a Foliage Architect (I mowed lawns), System Builder (computer assembly slave), Network Administrator (very poorly paid...
FreiK's WebLog
The customer is wrong
Posted
over 5 years ago
by
Kevin Frei
0
Comments
I just watched the highly lame “You wouldn’t steal a car…Downloading pirated movies is stealing ” ‘trailer’. How’s this for irony: I watched this trailer because it was the SECOND thing to play on the DVD of Die...
FreiK's WebLog
Turning off comments for a while...
Posted
over 5 years ago
by
Kevin Frei
0
Comments
The spam bots have been causing me all sorts of trouble - I had over 1000 messages informing me that some spam has been deleted over the weekend. I'm going to kill comments, and hope that in a few months, (after I get a chance to write up something of...
FreiK's WebLog
Vista x64 Media Center 'fix'
Posted
over 6 years ago
by
Kevin Frei
5
Comments
<RETRACTION> Crap. After getting a couple of comments saying they tried the same thing, and it didn't work for them, I went back and tried it myself. And it turns out it doesn't work. I think I had tried it with some media that I had already...
FreiK's WebLog
How not to benchmark different languages
Posted
over 6 years ago
by
Kevin Frei
8
Comments
I've recently been trolling the web for any sort of language-comparision benchmarks, to see how the CLR's JIT stacks up to the competition. Dr. Dobbs has what seemed to be a pretty reasonable micro-benchmark article . It's not particularly insightful...
FreiK's WebLog
Boost 1.34.0 and how to get it to build for AMD64...
Posted
over 6 years ago
by
Kevin Frei
0
Comments
I've recently been deluged by a pile of new electronic gadgets* so that I haven't had time to do much coding. So I was looking around yesterday and found that there's (finally) a new version of Boost available. I was actually underwhelmed by the lack...
FreiK's WebLog
How to use RtlUnwindEx
Posted
over 6 years ago
by
Kevin Frei
1
Comments
Disclaimer: I've never actually written an unwind personality routine, so take what's here with a grain of salt. A few days back, I spent 30 minutes defending the C++ runtime's exception handling personality routine to the guy that has the less than...
FreiK's WebLog
AMD64 unwind info gotchas
Posted
over 6 years ago
by
Kevin Frei
1
Comments
I had a brief e-mail exchange with one of the devs on the optimizer team about a checkin he put up for review. He modified the compiler so that it only aligns the stack for functions that call other functions - that's the typical definition in compiler...
FreiK's WebLog
New Job, SP1
Posted
over 7 years ago
by
Kevin Frei
3
Comments
I recently switched from the lead of the Code Gen & Tools team for Visual C++ to the lead for the Code Gen team for the .Net Framework. I've not used managed code much, but for some classes of code, it sure does look easier to use [I'm working on...
FreiK's WebLog
Speaking in 'public'...
Posted
over 7 years ago
by
Kevin Frei
4
Comments
I'll be hanging out with the cool kids at the Northwest C++ Users Group tomorrow night. If you're in the area, and want to heckle me, swing by. We'll be in building 40 at 6:30 PM. My talk starts at 7:00 PM. I'm talking about the actual runtime cost of...
FreiK's WebLog
Bug in x86 inline assembly to watch out for
Posted
over 7 years ago
by
Kevin Frei
2
Comments
Imagine this very lame code: int main() {} void BugAsm() { __asm { MOV [ESP+12],OFFSET main } } void(*BugAsmPt)()=&BugAsm; // this is just to make sure the function is not removed by /OPT:REF Now imagine your significantly less...
FreiK's WebLog
A more flexible array template [and the evolution of the idea]
Posted
over 7 years ago
by
Kevin Frei
4
Comments
{Disclaimer - I started with a bunch of code from boost::array - it's a great implementation of the functionality it provides} While my day job doesn't generally allow me to goof around with advanced C++ features, I still managed to find time to do...
FreiK's WebLog
ML64 bug to watch out for
Posted
over 7 years ago
by
Kevin Frei
0
Comments
If you're porting your application to x64, and you use much in the way of __asm in your x86 code, you're likely to start looking at ml64 - the 64 bit version of Masm. The reason you're likely to do this is that the x64 compiler doesn't support __asm blocks...
FreiK's WebLog
Visual C++ Code Gen & Tools bugs
Posted
over 7 years ago
by
Kevin Frei
2
Comments
My role for the past 6 months (and the next several) I'm charged with effectively "going down with the ship" WRT the current generation of code gen & tools for Visual C++. This includes the linker, Masm, ml64, DIA, c2, pdb, and a few other miscellaneous...
FreiK's WebLog
Language & Library Evolution
Posted
over 7 years ago
by
Kevin Frei
1
Comments
Let’s say you have a programming language, K-- version 1.0, with it’s accompanying runtime library, stdK--. And it turns out that the language needed some new features, like concepts, thread safety, concurrency, a strong memory model, improved security...
FreiK's WebLog
Updated ABI docs available + Exception Handling info
Posted
over 7 years ago
by
Kevin Frei
9
Comments
They're not marvelously better, but they include the introduction that I wrote a couple years ago (and have mirrored in this blog twice, now). So, check out http://msdn2.microsoft.com/en-us/library/7kcdt6fy(VS.80).aspx to see the x64 ABI stuff in all...
FreiK's WebLog
How to get CL.exe proxy filters (like STLFilt) working under VS2005
Posted
over 7 years ago
by
Kevin Frei
8
Comments
There's a class of tools that lots of people write that replace cl.exe with a 'wrapper' to do things link pre-process a command line [perhaps adding particular -D arguments], or filtering the output to deal with things like psychotically complicated error...
FreiK's WebLog
What does "Hot Patchability" mean and what is it for?
Posted
over 7 years ago
by
Kevin Frei
6
Comments
Explains in hand-wavy, high level terms what hot-patchability is, why you might want it, and how it works....
FreiK's WebLog
x64 ABI vs. x86 ABI (aka Calling Conventions for AMD64 & EM64T)
Posted
over 7 years ago
by
Kevin Frei
14
Comments
A Summary of the x64 calling conventions with links to the official document - a handy reference for folks just starting to port a compiler, or needing to author some assembly code....
FreiK's WebLog
Why isn't __assume on for asserts in retail mode?
Posted
over 7 years ago
by
Kevin Frei
3
Comments
__assume and __forceinline were the first two features I implemented as a developer out of college. I just resolved a bug as 'By Design' that asked the question posed in the title. Here's a brief explanation: First, __assume(n==x) basically tells the...
FreiK's WebLog
64 bit Microsoft Mouse & Keyboard Drivers!
Posted
over 7 years ago
by
Kevin Frei
4
Comments
I tried out Windows Vista 64 on a machine for a while, but had need of a more stable system (I generally wait to self-host on OS'es until Beta 2). So I reinstalled XP64, and on a lark, checked. What do you know: http://www.microsoft.com/hardware has 64...
FreiK's WebLog
X64 Unwind Information
Posted
over 7 years ago
by
Kevin Frei
3
Comments
A brief discussion of how to author simple x64 unwind data for assembly files...
FreiK's WebLog
The CD Copy Protection Morons
Posted
over 8 years ago
by
Kevin Frei
1
Comments
The poor sucker in my wife's family that drew my name for the annual christmas gift exchange bought me a copy of Fiona Apple's new album, Extraordinary Machine (which is an excellent album, BTW, and took all my self control not to purchase earlier). As...
Page 1 of 2 (39 items)
1
2