Why is the content of argv, on the stack? why not on data section?
since its on the stack..say, i have
argv[] = "HELLO WORLD";
need to push "HELL"
push "O WO";
push "RLD";
right? or is there any other mechanism to load the string into the stack?
sorry if this i
Hello
#include
void func(char *ptr) {
printf("\n%i",sizeof(ptr));
}
int main(void) {
char arr[10];
printf("\n Sizeof arr %i",sizeof(arr));
func(arr);
return 0;
}
/* sizeof(arr) != sizeof(ptr), but they point to same thing. */
So problem. On main, arr has size 10, while
This is basically if it has any interest..or else ignore...
This inverts the digits.
So 321 should be 123..not tested
We only invert the ten bases, but it can be ok for others.
A) 1*10^4 + 2*10^3 + 3*10^2 + 4*10^1 + 5 * 10^0
B) 10^4 + 10^2 +
e quite large cost of doing this was totally justified.
The benefit would be for the user...code like it wants (for example,
return value in %ecx)..which is the ultimate reason to use compilers
and also, the benefit would be to use every ABI possible (choosing the best)
paul
On Jul
If we can select the ABi for our program (using gcc), why is there a
need for ABI stability?!
why not put it on a define
#define abi v3
int main() {
}
Each user would just have to compile the code, to follow the abi...no
need to worry changing it
thanks
andre
What if the user chooses in own ABI, say specifying a config file like
My abi
" Parameters = pushed in stack"
say
gcc -abi "My abi" some.c -o some
what would be the problems of specifying an ABI?? would that improve the
usage of user? less complex / more
simpler for user (say user is used
Could gcc have an option to specify ABI?
say
gcc something.c -g -abi 1 -o something
thanks
andre
In c programming language, a NULL pointer would point to a designate
memory location...
is this new or interessing ?!
best regards
andre
hey, what about not compiling functions, that arent called...and also ,
what about precompiled functions that arent changed
thanks in advance
andre