Ol�, tudo bem ?
Voc� ainda tem interesse na cria��o do seu site e loja virtual ?
Att.
http://www.e-assis.com.br/?c=g...@gnu.org
Tel: (11) 2378-7244
-> http://www.gnu.org/software/gcc/gcc.html
Failed Validation of W3C !
This page is not Valid XHTML 1.0 Transitional !
W3C rules specify that XHTML tags have to be written in lowercase.
You have just to replace every "DIV" by "div" and validation will succeed.
All the best. :-)
___
Hello,
I have a question concerning successfully assembling and linking the following
assembly program on a linux AMD 64 machine:
#cpuid2.s View the CPUID Vendor ID string using C library calls
.section .datatext
output:
.asciz "The processor Vendor ID is '%s'\n"
.section .bss
.lcomm bu
tructions.
Hope it helps. If you can point me to a page describing what you mean about
simulator testing I'd be interested too :)
Cheers,
--
Michel "Walken" Lespinasse
"Bill Gates is a monocle and a Persian cat away from being the villain
in a James Bond movie." -- Dennis Miller
eturn r;
}
int main(){
printf("%s\n",s().world);
}
Assigning s() to a variable and then using the variable avoids the
segfault.
gcc --version returns (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu3).
Regards,
Michel
bably
uninitialized data).
g++ still works fine and does not give any warning, even when compiling
with -Wall.
Michel
Dennis Clarke wrote:
Hi,
The following program segfaults when compiled with gcc
but runs fine when compiled with g++ or icc (the intel C compiler)
#include
struct
Ok thanks for the clear explanation!
Not being able to threat char[] as a string is rather shocking to me though.
Regards,
Michel
;
r.world[0]='H';
r.world[1]='\0';
return r;
}
int main(){
struct Hello a;
a=s();
printf("%s\n",a.world);
return 0;
}
In this case an implicit conversion of char[] to (char *) is happening
as well as far as I can see.
Regards,
Michel
ssume this behaviour is not triggered often as
in C it is
not so common to have an array which is an rvalue.
Michel
Sent from my iPhone
Advertising on gcc list. Dear me... ;-)
Andrew.
Dear developers:
I find it counterintuitive that if I repeatedly reset a variable by using
strcpy with an empty string "" to that variable and then us strcat to add
characters to that variable that that seems to lead to a stack overflow.
I would expect strcpy to first free the variable, then ma
10 matches
Mail list logo