comp.lang.ada
 help / color / mirror / Atom feed
From: "Martin Dowie" <martin.dowie@baesystems.com>
Subject: Re: RISC - largish (code listed)
Date: Thu, 22 Mar 2001 09:34:06 -0000
Date: 2001-03-22T09:34:06+00:00	[thread overview]
Message-ID: <3ab9c526$1@pull.gecm.com> (raw)
In-Reply-To: 3ab9c0e9$1@pull.gecm.com

oops forgot the assembler for the instantiation.. still not a lot extra for
these 2 routines.

Martin Dowie <martin.dowie@baesystems.com> wrote in message
news:3ab9c0e9$1@pull.gecm.com...
> Something like this? Seems _well_ dangerous but also seems to produce very
> little code...
>
> Ted Dennison <dennison@telepath.com> wrote in message
> news:LWKt6.1865$94.2578@www.newsranger.com...
> > That's why if the object is largish I typically use unchecked_conversion
> on
> > pointers to the object instead. Depending on the smarts of the compiler,
> that
> > might not generate any code at all.
> >
> > I don't like "for use at" overlays. For one thing, initializations get
> (re)done
> > when the overlay happens, which could wipe out important stuff. For
> another, the
> > aliasing is (generally) given a much wider scope than is achievable with
> > unchecked conversion.

Ltext2:
.stabn
68,0,3,LM19-_test_unchecked_access_conversion__my_conversions__to_object1_po
inter$2.8
LM19:
 pushl %ebp
 movl %esp,%ebp
 subl $4,%esp
 movl %ecx,-4(%ebp)
.stabn
68,0,5,LM20-_test_unchecked_access_conversion__my_conversions__to_object1_po
inter$2.8
LM20:
 movl 8(%ebp),%eax
 pushl %eax
 movl -4(%ebp),%ecx
 call _test_unchecked_access_conversion__string_conversions__to_address.7
 addl $4,%esp
 movl %eax,%eax
 pushl %eax
 movl -4(%ebp),%ecx
 call _test_unchecked_access_conversion__record_conversions__to_pointer.4
 addl $4,%esp
 movl %eax,%edx
 movl %edx,%eax
 jmp L10
 .align 2,0x90
.stabn
68,0,5,LM21-_test_unchecked_access_conversion__my_conversions__to_object1_po
inter$2.8
LM21:
L10:
 movl %ebp,%esp
 popl %ebp
 ret
Lscope4:
.stabs
"",36,0,0,Lscope4-_test_unchecked_access_conversion__my_conversions__to_obje
ct1_pointer$2.8
 .align 4
.stabs
"test_unchecked_access_conversion__my_conversions__to_object2_pointer$2:f(0,
46),test_unchecked_access_conversion__my_conversions__to_object2_pointer$2,t
est_unchecked_access_conversion",36,0,8,_test_unchecked_access_conversion__m
y_conversions__to_object2_pointer$2.9
.stabs "obj1_ptr:p(0,29)",160,0,15,8
_test_unchecked_access_conversion__my_conversions__to_object2_pointer$2.9:
.stabn
68,0,8,LM22-_test_unchecked_access_conversion__my_conversions__to_object2_po
inter$2.9
LM22:
 pushl %ebp
 movl %esp,%ebp
 subl $4,%esp
 movl %ecx,-4(%ebp)
.stabn
68,0,10,LM23-_test_unchecked_access_conversion__my_conversions__to_object2_p
ointer$2.9
LM23:
 movl 8(%ebp),%eax
 pushl %eax
 movl -4(%ebp),%ecx
 call _test_unchecked_access_conversion__record_conversions__to_address.5
 addl $4,%esp
 movl %eax,%eax
 pushl %eax
 movl -4(%ebp),%ecx
 call _test_unchecked_access_conversion__string_conversions__to_pointer.6
 addl $4,%esp
 movl %eax,%edx
 movl %edx,%eax
 jmp L11
 .align 2,0x90
.stabn
68,0,10,LM24-_test_unchecked_access_conversion__my_conversions__to_object2_p
ointer$2.9
LM24:
L11:
 movl %ebp,%esp
 popl %ebp
 ret






  reply	other threads:[~2001-03-22  9:34 UTC|newest]

Thread overview: 77+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-14 20:23 RISC chris.danx
2001-03-14 21:57 ` RISC Tucker Taft
2001-03-14 22:36   ` RISC chris.danx
2001-03-14 23:03     ` RISC Fraser Wilson
2001-03-15  1:30       ` RISC Corey Ashford
2001-03-15  9:19       ` RISC chris.danx
2001-03-15 12:37 ` RISC chris.danx
2001-03-15 13:03   ` RISC Tarjei T. Jensen
2001-03-15 18:29     ` RISC Robert A Duff
2001-03-15 14:40   ` RISC Ted Dennison
2001-03-15 14:49     ` RISC Robert A Duff
2001-03-15 17:37       ` RISC Marin David Condic
2001-03-15 18:28         ` RISC Robert A Duff
2001-03-15 19:16           ` RISC Marin David Condic
2001-03-16  8:44             ` RISC Martin Dowie
2001-03-16 14:40               ` RISC Marin David Condic
2001-03-20 10:17                 ` RISC Martin Dowie
2001-03-20 14:34                   ` RISC Marin David Condic
2001-03-20 15:45                     ` RISC Ted Dennison
2001-03-20 16:39                       ` RISC Robert A Duff
2001-03-20 18:10                       ` RISC Martin Dowie
2001-03-20 18:56                         ` RISC Ted Dennison
2001-03-22  9:16                       ` RISC - largish (code listed) Martin Dowie
2001-03-22  9:34                         ` Martin Dowie [this message]
2001-03-20 18:09                     ` RISC Martin Dowie
2001-03-20 20:00                       ` RISC Marin David Condic
2001-03-20 22:30                         ` RISC Robert A Duff
2001-03-20 22:48                           ` RISC Ted Dennison
2001-03-20 23:10                           ` RISC Marin David Condic
2001-03-21  0:18                             ` RISC Robert A Duff
2001-03-21 14:31                               ` RISC Marin David Condic
2001-03-21 16:47                                 ` RISC Ted Dennison
2001-03-21 17:36                                   ` RISC Marin David Condic
2001-03-16 15:09             ` RISC Tucker Taft
2001-03-16 17:10               ` RISC Robert A Duff
2001-03-16 19:02                 ` RISC Marin David Condic
2001-03-16 20:58                   ` RISC Robert A Duff
2001-03-19 16:17                     ` RISC Marin David Condic
2001-03-19 16:45                       ` RISC Florian Weimer
2001-03-19 17:14                         ` RISC Marin David Condic
2001-03-19 17:33                           ` RISC Florian Weimer
2001-03-21  5:57                           ` RISC Lao Xiao Hai
2001-03-16 22:19                   ` RISC Ted Dennison
2001-03-16 19:13                 ` RISC Laurent Guerby
2001-03-16 20:30                   ` RISC Robert A Duff
2001-03-16 20:51                 ` RISC Ole-Hjalmar Kristensen
2001-03-16 18:33               ` RISC Marin David Condic
2001-03-16 20:45                 ` RISC Robert A Duff
2001-03-17  1:13                   ` RISC Randy Brukardt
2001-03-19 16:34                   ` RISC Marin David Condic
2001-03-19 17:49                     ` RISC Robert A Duff
2001-03-16 20:08 ` RISC chris.danx
2001-03-16 20:31   ` RISC Marin David Condic
2001-03-17 21:51     ` RISC Robert A Duff
2001-03-18  6:37       ` RISC Charles Hixson
2001-03-19 15:42         ` RISC Robert A Duff
2001-03-19 17:02         ` RISC Marin David Condic
2001-03-19 17:45           ` RISC Robert A Duff
2001-03-19 18:48             ` RISC Marin David Condic
2001-03-19 16:45       ` RISC Marin David Condic
2001-03-16 22:27 ` RISC chris.danx
2001-03-17  2:49   ` RISC Jeffrey Carter
2001-03-19  9:43   ` RISC Martin Dowie
2001-03-19 11:06     ` RISC chris.danx
2001-03-28 22:24     ` RISC chris.danx
2001-03-29  0:52       ` RISC Corey Ashford
2001-03-29 12:42       ` RISC John English
2001-03-22 20:11 ` RISC chris.danx
2001-03-22 20:51   ` RISC Marin David Condic
2001-03-22 21:02   ` RISC tmoran
2001-03-22 21:18     ` RISC chris.danx
2001-03-22 21:45   ` RISC Britt Snodgrass
2001-03-22 22:43     ` RISC chris.danx
2001-03-28 11:37   ` RISC chris.danx
  -- strict thread matches above, loose matches on Subject: below --
2001-03-22 18:31 RISC - largish (code listed) Beard, Frank
2001-03-23  8:36 ` Martin Dowie
2001-03-23 12:21   ` David C. Hoos, Sr.
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox