This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Is it same?
- From: mike stump <mrs at windriver dot com>
- To: gcc at gnu dot org, maggie_shh at hotmail dot com
- Date: Mon, 17 Jun 2002 11:08:10 -0700 (PDT)
- Subject: Re: Is it same?
- References: <F172C6POYFSrAuWiqJm00028b15@hotmail.com>
> From: "Maggie Mitchell" <maggie_shh@hotmail.com>
> To: gcc@gnu.org
> Date: Mon, 17 Jun 2002 03:22:02 +0000
> class A {
> ...
> };
> int main()
> {
> A a;//Is it same as "A a();"???
> }
This question can be answered by compiling with -S for each one, and
seeing if you get the exact same assembly code. If you do, they must
be (in this context). If you don't then you can examine the
differences in the assembly to see if they relate to semantics.
FYI, this list is the wrong place to learn any programming language.