Deutsch English Français Italiano |
<vi54e9$3ie0o$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder8.news.weretis.net!newsfeed.xs3.de!ereborbbs.duckdns.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Thiago Adams <thiago.adams@gmail.com> Newsgroups: comp.lang.c Subject: question about linker Date: Tue, 26 Nov 2024 15:35:52 -0300 Organization: A noiseless patient Spider Lines: 45 Message-ID: <vi54e9$3ie0o$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 26 Nov 2024 19:35:53 +0100 (CET) Injection-Info: dont-email.me; posting-host="582870763c644d3bdda32f5308bc8ee6"; logging-data="3749912"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/0+RQtzgJc8enHWZTiiwoWUAVVMzZNxdE=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:xDOmmwZhApY9LgpvwdVbZMoBmmw= Content-Language: en-US Bytes: 1840 (I think I know the answer but I would like to learn more.) I am using C89 as "compiler backend intermediate language". I want a very simple output that could facilitate the construction of a simple C89 compiler focused on code generation. I am removing these features from the generated code. - typedef - enum - preprocessor - const At this output, I am generating the prototypes for the functions I call. For instance, int strcmp( const char* lhs, const char* rhs ); is generated as int strcmp( char* lhs, char* rhs ); I am also generating the structs as required (on demand). For the structs I am renaming it because I am generating all structs at global scope. Question: Does the compiler/linkers? Cares If I am lying about const? Or If rename the structs? I think it does not care, and it seems to work (it compiles and run).