This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Is it same?


> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]