On 31/07/15 14:51, Daniel Gutson wrote:

> Is it possible to construct objects without an address via plain C++?

Sorry I don't understand the question. Rephrase please?

Global objects and objects of static storage duration don't take an address.


This register asm variable has no address, since this is a real register. This, however, is not a problem:

int *h(void)
{
    register int i;
    return &i;
}

--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to