Hello All,
I have been writing C programs since 5 years. Just wondering, what happens when we typecast any variable.?
I would appreciate your comments.
Thanks,
Type: Posts; User: Roaring_Tiger
Hello All,
I have been writing C programs since 5 years. Just wondering, what happens when we typecast any variable.?
I would appreciate your comments.
Thanks,
Yes the seed is dynamic in nature.
Can I use WinZip to compress?
Hello All,
I have code that generates 32 bytes random numbers taking input as 32 bit value. i.e 2^32 possible inputs.
Now I passed 1-2^32 numbers to generate the random number 2^32 random...
I have following code in .h file
#define ABC 1
#define PQR 1
#if (ABC == 1)
#define PQR 0
#endif
Hello All,
As per I know, C support two types of code commenting techniques.
Block comment
/* */
and line comment
//
Hello All,
We are developing 186 based embedded C code for small memory model. And in future we are planning on using same C code for ARM processor under no OS.
At this moment, we are putting...
I was under impression that compilers which do maximum optimization are the good compilers.
But if this is the case, how do we classify a good compiler?
Thanx
Hello All,
I would like to make a few set of functions to reside at some constant address locations. I am building the code for 186 processor using small model.
e.g. function abc whose start...
We are using Paradigm C compiler to build embedded C application under small memory model and for 186 processor. Paradigm offers set of optmizations bits. like optimization by speed, by size, loop...
Thanks
Hello All,
I have to declare an array of function pointer return char and accepting nothing.
UCHAR(*s[12])(void) = {abc, def, ghi, klm,xyz,
...
Since it is time critical, we are planning to restict number of parameters to max 3 and pass parameters thro' registers. If we use stack then we have to change the assembly code which already exists....
The assembly routine may be called from another assembly module too. Will that be possible?
I am not getting how to implement the function pointer part of the solution that I discussed. Can...
I have bunch of C and assembly files. C module makes call to routine in assembly and vice versa. But assembly language platform can change from one processor to another but we would like to keep C...
Yes Thantos,
I am trying to understand your idea. But here is what want to do. Any suggestion about this from you people are most appreciated.
Like finding the memory leak in the application. I...
Ok, its deadlock.
How do you develop test condition that will say for sure that hung condition is because of deadlock and is because of these variable?
Hello All,
I have two threads sharing two resources. I use two mutexes to synchronise them. They are running at differenct prority.
In first thread,
Acquire A
Acquire B
If you want to cmpile list of files then better write makefile..
I have two function foo_good and foo_critically_good. Both the function does conceptually the same thing. Meaning, the code (some fixes in critically_good function) and parameters passed are the...
"Array name is pointers in C"
First class of array in your school.
#include <iostream.h>
Not required..
Hello,
Can anybody tell me good tutorial(I know, I came dry after googling), book and any pointer on board bring up?
Basically, I want to know, how board bring up starts, How to do hardware...
-lm means link with math library.
Hope that helps..
Can you do gcc /? or gcc -help ?