From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,a3fe2aac201210c0 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local1.nntp.dca.giganews.com!nntp.megapath.net!news.megapath.net.POSTED!not-for-mail NNTP-Posting-Date: Wed, 28 Jul 2004 19:54:48 -0500 From: "Randy Brukardt" Newsgroups: comp.lang.ada References: <40f6bf21@dnews.tpgi.com.au> <40fb8c00$1_1@baen1673807.greenlnk.net> Subject: Re: reading a text file into a string Date: Wed, 28 Jul 2004 19:55:26 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Message-ID: NNTP-Posting-Host: 64.32.209.38 X-Trace: sv3-dKGtmnTnqNNtAYrVo5gUGcQDkG/9ea0bMSX49ly0PpqCDcUGJPcmlPWKaCxJZl7WVLR5uxv3qlUUT1j!PqlECyWL6pp+USG+pECP2z+XXPKvj0jZEnRp05YOFeO+0pJo6FpXNYpLfy2r6LNHfPex7hythcSs X-Complaints-To: abuse@megapath.net X-DMCA-Complaints-To: abuse@megapath.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.13 Xref: g2news1.google.com comp.lang.ada:2450 Date: 2004-07-28T19:55:26-05:00 List-Id: "Robert I. Eachus" wrote in message news:KOadnc3XCbaleZvcRVn-qQ@comcast.com... ... > The AMD manual referenced above gives the example code to do this on > page 128 (in Section 5.13): > > prologue: > push ebp > mov ebp, esp > sub esp, SIZE_OF_LOCALS ; Size of local variables > and esp, �8 > ... ; Push registers that need to be preserved. > > epilogue: ; Pop register that needed to be preserved. > leave > ret "Leave" used to be one of the instructions that Intel told you to avoid, although they were rather ambigious about it. Anyway, we put EBP at the bottom of the frame, so "leave" doesn't work. Randy.