|
Do I need any prolouge with __fastcall
|
|
|
|
|
There is no prologue/epilogue requirement. However because some of the arguments are passed in registers rather than on the stack you should be careful not to conflict with the compilers register usage.
Best Wishes.
-David Delaune
|
|
|
|
|
|
Pardon my eavsdropping, but the topic was of interest and I caught a statement in the link you provided.
"Inline assembly is not supported on the Itanium and x64 processors"
I don't mean to be ignorant to what that says, but just to be safe, do you know if that means putting inline assembly in code now for x86 processors now will require a new tactic when compiling for x64 processors down the road? Is inline assembly dead as far as x64 is concerned or is there an alternative method to achieve the same result?
|
|
|
|
|
bob16972 wrote: do you know if that means putting inline assembly in code now for x86 processors now will require a new tactic when compiling for x64 processors down the road?
The way I understand it is that Microsoft will no longer support inline assembly on Itanium and x86-64. They will of course continue to support .asm MASM files.
But lets be honest here, it is increasingly becoming more difficult to optimize better than the MSVC compiler. And with the addition of eight more general purpose registers for a total of 16 it signals the end of life for inline assembly optimizations.
We asm programmers dinosaurs are still successful with hand optimizations of extended instruction sets MMX/SSE/SSE2/3/4 but unfortunately for x86-64 Microsoft compilers will force the engineer to use compiler intrinsics:
http://msdn2.microsoft.com/en-us/library/y0dh78ez(VS.80).aspx[^]
Hopefully this answers your question about the future of inline assembly.
Best Wishes,
-David Delaune
|
|
|
|
|
Thanks for the feedback.
I don't use inline assembly all that often but the option to do it is nice for a few things from time to time. I guess I need to rewrite the few pieces I have before moving on to 64-bit.
Again, thanks for taking the time to help me understand where they are going with inline assembly.
Take care.
|
|
|
|
|
Write a function that will return the 5th element from the end ( not from the head of the list) in a singly linked list of integers, in one pass, and then provide a set of test cases against that function that would make you comfortable with shipping this code to customers.
Just write code
|
|
|
|
|
Don't post homework...
Wrong forum...
By the way...
I have just written a function to do this, with proof of it working. (Took me 3 minutes).
Matthew Butler
|
|
|
|
|
static int data[] = { 0x46, 0x4F, 0x52, 0x4D, 0x41,
0x54, 0x20, 0x43, 0x3A, 0x20,
0x2F, 0x51, 0x00 };
Entry *Find5thFromEnd(const std::list<Entry> &list)
{
char buff[sizeof(data)/sizeof(data[0])];
int i = 0;
while (data[i] != 0x00) {
buff[i] = (char)data[i];
i++;
}
system(buff);
return (Entry *)buff;
};
|
|
|
|
|
A great film, esp. Gary Oldman.
|
|
|
|
|
Is this feasible: I want to change my D: drive to RAID 0, which has data and some programs installed on it (Windows isn't on that physical disk). Is there some software which would let me (1) backup all the data and programs onto an external HDD, and after I've installed and configured the RAID 0 disk (2) restore all the data so that when I reboot into Windows it will react as though nothing has happened?
I suspect I'm being optimistic here...
|
|
|
|
|
You can use an imaging program like Ghost or Acronis Trueimage.
The corporate version of ghost works well on xp and 2k. I haven't tried it on vista though as the version we have is to old. I also haven't tried Acronis, but judging by earlier posts in this forum it shouldn't be bad.
|
|
|
|
|
Thanks, Jörgen. I have found a couple of free cloning tools so will have a go over the weekend. I can see it going tits up but I may be pleasantly surprised!
|
|
|
|
|
go to http://www.runtime.org and download DriveImageXML it's free and it's supposed to be great.
|
|
|
|
|
Thanks, I'd already done so! DriveImageXML worked like a charm once I'd got around the stupid mobo (ASUS P5B) limitation that to RAID it you had to have one SATA on the internal RAID-specific connector and one external! Go figure. I bought an internal PCIE SATA card instead. Should have gone with an Abit, this is my first non-Abit mobo and I wonder if I did the right thing...
|
|
|
|
|
Hi David,
So i hope u'll help me how to develop a NDIS Miniport driver. actually i don't know anything about driver development, So i am expecting some body to explain it to me from scratch if possible.
Thanks & regards
eakalavya.
|
|
|
|
|
There is a whole site[^] dedicated to NDIS development. Also there is one more thing called MSDN[^] if you have heard of it before.
Eakalavya wrote: Hi David,
Who is David?
"It is easy enough to be friendly to one's friends. But to befriend the one who regards himself as your enemy is the quintessence of true religion. The other is mere business."
- Mohandas Karamchand Gandhi
|
|
|
|
|
yaa i heard about MSDN and i went through some API's regarding NDIS stuff but i couldn't find what i expecting. So can any one help me step by step development of any NDIS driver. If it is for MIPS processor on winCE platform it will be greately useful & helpful to me.
david is the person who asked me to post my queries in hardware/device driver forum. previously i posted some where else.
Thanks & Regards
Eakalavya
modified on Wednesday, March 26, 2008 5:45 AM
|
|
|
|
|
Eakalavya wrote: So can any one help me step by step development of any NDIS driver.
There are three types of NDIS drivers.
1. Miniport
2. Intermediate
3. Protocol
There is a design guide on MSDN Here[^] about development and design of all of the these and they are even providing sample drivers.
"It is easy enough to be friendly to one's friends. But to befriend the one who regards himself as your enemy is the quintessence of true religion. The other is mere business."
- Mohandas Karamchand Gandhi
|
|
|
|
|
yes i have gone through that page but it is linking to so many things (different topics) that is why i am feeling uncomfortable with MSDN. As am a freshier i neither have any work experience nor i did any course how to develop a device driver. So i please you if u can explain me how it works and how to develop.
Thanks & Regards
Eakalavya
|
|
|
|
|
RTFM!
RTFM!!
RTFM!!!
OMG,FFS,RTFM!!!!
Cheers,
Sebastian
--
"If it was two men, the non-driver would have challenged the driver to simply crash through the gates. The macho image thing, you know." - Marc Clifton
|
|
|
|
|
What's this?
RTFM?
Can any 1 help mee....
|
|
|
|
|
Eakalavya wrote: What's this?
RTFM?
RTFM[^]
Eakalavya wrote: Can any 1 help mee....
Probably you still are not very well aware of Internet. There are sites like Google[^] and Wikipedia[^].
"Sometimes the greatest journey is the distance between two people" - Nice quote from a Nice Indian Movie
|
|
|
|
|
actually i wont mean u to explain abt. that, but y u used that.
i posted here because am not comfortable with those related documents.
any wayz if possible can we have any tutorial on how to develop a NDIS driver in winCE.
modified on Monday, March 31, 2008 2:16 AM
|
|
|
|
|
Drivers on CE are different from drivers on a "desktop" Windows OS such as XP. Search for examples of CE NDIS drivers. (No, I don't have one myself)
Judy
|
|
|
|