calling convention in c [closed] - c

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
some one please tell me
how to change the default calling convention in c?

Calling conventions are not specified by the language. They are extensions to your compiler.
That said, commonly you do something like:
void __fastcall my_func(void);
But this is completely dependent on your compiler and platform.

This largely depends on your compiler, toolchain, and platform. You will need to be more specific on what your environment is, and what you wish to change to.

Related

Getting the number of CPU cores using only C standard library? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I was asked this during an interview, and I wasn't able to come up with an answer.
The idea is to write a program using only the C standard library, and find out how many CPU cores the box has. The solution needs to be platform independent, and using external libraries or system calls is not allowed.
Does anybody have experience with this? Thanks!
Thanks everyone who participated. I think now it seems like the answer will be "there's no reliable way of doing this." Great discussions guys!

Which language is used to write a C compiler? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
PHP's interpreter is written in C. In which language is a C compiler written? Assembly language?
the C-Compiler is written in C with the use of a minimal bootstrap compiler in another language

Size of Compiler [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I was exploring a bit on compilers.I had a question in my mind.I wanted to know whether,
C-Programming language provide*any programing function* to know the size of compiler being used?
I think it's safe to say "no". There isn't necessarily a meaningful answer -- it's entirely possible to build a single program with code from two (or more) different compilers.

How to use and edit Windows exceutable resources from C? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Can anyone tell me how to add a Windows string resource?
How to read it?
And, lastly, code for another C program to edit that resource.
thanx a lot in advance...hope you guyz don't laugh ..;)
Assuming that you are talking about Windows resources inside of executables, see this:
http://www.codeproject.com/KB/cpp/dynares.aspx

how to monitor cpu instruction being called by a program [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
how to monitor cpu instruction being called by a program.
Depending on the platform, you might be able to run the program under a debugger, and single step through the assembly instructions to see exactly what it's doing.
try OllyDbg

Resources