Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!proto!joe From: joe@proto.com (Joe Huffman) Newsgroups: comp.os.msdos.programmer Subject: Re: To C Or Not To C... Message-ID: <1991May13.003830.25630@proto.com> Date: 13 May 91 00:38:30 GMT References: <16.2829EFD7@bohemia.metronet.org> <1991May11.054112.8038@cs.cornell.edu> Organization: Prototronics @ Sandpoint, Idaho Lines: 47 ressler@CS.Cornell.EDU (Gene Ressler) writes: >I'd be amazed if TC++ did CP, as there >are other optimizations that would be no harder >and have larger payback. Here's an example >that shows TC2.0 _doesn't_ do it. >#include >main() >{ > int a, b; > a = 1; > b = a; > printf("%d\n", b); >} >If TC++ does this, I'll rush out to buy a copy 8-> . The Zortech compiler does 'it' (see below). Does this mean you will rush out and buy a copy of it? No need to 'rush out' really -- just call 800-848-8408. Don't forget to ask about your educational discount. :-) ;#include ;main() ;{ _main: push BP mov BP,SP ; int a, b; ; ; a = 1; ; b = a; ; printf("%d\n", b); mov AX,1 push AX mov AX,offset DGROUP:D0 push AX calln _printf add SP,4 ;} pop BP ret -- joe@proto.com