Deutsch English Français Italiano |
<vi7cin$25vc$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: David Brown <david.brown@hesbynett.no> Newsgroups: comp.lang.c Subject: Re: question about linker Date: Wed, 27 Nov 2024 16:07:02 +0100 Organization: A noiseless patient Spider Lines: 38 Message-ID: <vi7cin$25vc$1@dont-email.me> References: <vi54e9$3ie0o$1@dont-email.me> <vi56hi$3ie0o$2@dont-email.me> <vi57bh$3ip1o$2@dont-email.me> <vi58ba$3ie0o$4@dont-email.me> <vi6q77$3umr3$1@dont-email.me> <vi6tm3$3ve13$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Wed, 27 Nov 2024 16:07:06 +0100 (CET) Injection-Info: dont-email.me; posting-host="487d0a8059509a11a02f0c3a682b1a92"; logging-data="71660"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+GMax87/6zZ+6/oAuCnrSHUTt9vlr+wm8=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Cancel-Lock: sha1:GheVW/MrR5X51GNIDcL8D/98C58= Content-Language: en-GB In-Reply-To: <vi6tm3$3ve13$1@dont-email.me> Bytes: 2672 On 27/11/2024 11:52, Thiago Adams wrote: > On 27/11/2024 06:53, David Brown wrote: > > Thanks for the comments. Very useful. > If they are of help to you, then that's great. It is not always easy to know what will be useful. >> >> I am not all sure why you are generating code C90 code here. I don't >> think anyone much cares about using strict C90 other than a couple of >> people in this newsgroup. > > The objective is to leave all complications to a front end, and write a > simpler C89 code that is used by the backend. > > The advantage, comparing with a custom IL, is that the code will works > in any C compiler. > I think if we can understand what you are trying to do, and why, it will be easier to help. (I say "we" - maybe I'm the only one that doesn't understand. But hopefully I'm not the only one that is happy to give comments that might be useful!) Are you trying to make your own C compiler here, divided into two parts? If so, why? What's the motivation - what will make this compiler different from others? As an IL, this limited C would be very poor in terms of good code generation, static error checking, or debugging. It could be fairly portable, but I think would lose the platform or compiler specific features that are often useful for real programs and libraries. (Of course, fun, learning and your own interest is always perfectly good motivation as far as I am concerned.)