[hpsdr] .net framework 1.1

george byrkit ghbyrkit at chartermi.net
Mon Nov 1 14:21:05 PDT 2010


Dear Joe,
Yes, you now understand.  C# applications generate 'pseudo-code', which is
turned into 'real code' at the time that the application is loaded to run.
If it is marked 'any cpu', then on a 64 bit OS, it turns into 64 bit code.
This will then cause a problem when running 32 bit code in a C/C++ dll.

Now, it isn't really 'emulation' that allows the code to run as 32 bit code
on a 64 bit OS.  At least I wouldn't use that term, because the code is not
EMULATED.  It runs thru a 'shim' or 'thunk' layer that deals with
interfacing the 32 bit code to the 64 bit operating system, when OS calls
are made.  Otherwise, the 32 bit code 'just runs' as 32 bit code.  No real
emulation involved.  This may be 'hair-splitting', but I think it's more
correct than saying it is emulated.

While somewhat similar to how 16 bit code would run on Windows 95 (gosh!  15
years ago!), it's different.

Vy 73,
George K9TRV


 1288646465.0


More information about the Hpsdr mailing list