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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,7d44f4c1437a0bc1,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!o13g2000vbl.googlegroups.com!not-for-mail From: Mike Newsgroups: comp.lang.ada Subject: Mixing Ada and c Date: Fri, 25 Sep 2009 09:19:30 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 157.127.124.15 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1253895571 2239 127.0.0.1 (25 Sep 2009 16:19:31 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 25 Sep 2009 16:19:31 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: o13g2000vbl.googlegroups.com; posting-host=157.127.124.15; posting-account=75iYsQoAAABUEoLZrxFNnZsTxbZSb5pV User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:8468 Date: 2009-09-25T09:19:30-07:00 List-Id: I have a c main program which does socket communications and calls and ada program which generates the data to be sent over the wire. What I've noticed is that the ada portion of the program runs almost twice as slow when linked with the c main than when run in stand alone with an ada driver. Is there a general reason that ada code in general runs more slowly when linked with and called by a c program? Thanks in advance Mike