Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Those who can't write, write manuals.


devel / comp.lang.c / Effect of CPP tags

SubjectAuthor
* Effect of CPP tagsJanis Papanagnou
+- Re: Effect of CPP tagsLowell Gilbert
+* Re: Effect of CPP tagsKaz Kylheku
|`* Re: Effect of CPP tagsSpiros Bousbouras
| `- Re: Effect of CPP tagsTim Rentsch
+* Re: Effect of CPP tagsJanis Papanagnou
|+* Re: Effect of CPP tagsLowell Gilbert
||+* Re: Effect of CPP tagsKeith Thompson
|||`* Re: Effect of CPP tagsKaz Kylheku
||| `* Re: Effect of CPP tagsKeith Thompson
|||  `* Re: Effect of CPP tagsTim Rentsch
|||   `* Re: Effect of CPP tagsKaz Kylheku
|||    +- Re: Effect of CPP tagsJames Kuyper
|||    +* Re: Effect of CPP tagsJames Kuyper
|||    |`* Re: Effect of CPP tagsKaz Kylheku
|||    | +* Re: Effect of CPP tagsJames Kuyper
|||    | |`- Re: Effect of CPP tagsTim Rentsch
|||    | `* Re: Effect of CPP tagsTim Rentsch
|||    |  `* Re: Effect of CPP tagsKeith Thompson
|||    |   +- Re: Effect of CPP tagsDavid Brown
|||    |   +* Re: Effect of CPP tagsTim Rentsch
|||    |   |`- Re: Effect of CPP tagsKeith Thompson
|||    |   `- Re: Effect of CPP tagsTim Rentsch
|||    `- Re: Effect of CPP tagsTim Rentsch
||+* Re: Effect of CPP tagsKaz Kylheku
|||+- Re: Effect of CPP tagsKaz Kylheku
|||`* Re: Effect of CPP tagsLowell Gilbert
||| `- Re: Effect of CPP tagsJanis Papanagnou
||`* Re: Effect of CPP tagsJanis Papanagnou
|| `- Re: Effect of CPP tagsKaz Kylheku
|+- Re: Effect of CPP tagsKaz Kylheku
|`* Re: Effect of CPP tagsScott Lurndal
| +* Re: Effect of CPP tagsJanis Papanagnou
| |`* Re: Effect of CPP tagsKeith Thompson
| | +* Re: Effect of CPP tagsScott Lurndal
| | |`* Re: Effect of CPP tagsDavid Brown
| | | `* Re: Effect of CPP tagsJames Kuyper
| | |  `- Re: Effect of CPP tagsDavid Brown
| | `- Re: Effect of CPP tagsTim Rentsch
| `- usleep (Was: Effect of CPP tags)Kenny McCormack
+* Re: Effect of CPP tagsLawrence D'Oliveiro
|`* Re: Effect of CPP tagsBart
| +* Re: Effect of CPP tagsDavid Brown
| |`* Re: Effect of CPP tagsKeith Thompson
| | `* Re: Effect of CPP tagsKaz Kylheku
| |  `* Re: Effect of CPP tagsBart
| |   +* Re: Effect of CPP tagsLawrence D'Oliveiro
| |   |`* Re: Effect of CPP tagsBart
| |   | `* Re: Effect of CPP tagsLawrence D'Oliveiro
| |   |  `* Re: Effect of CPP tagsBart
| |   |   +* Re: Effect of CPP tagsScott Lurndal
| |   |   |+* Re: Effect of CPP tagsDavid Brown
| |   |   ||`- Re: Effect of CPP tagsBGB
| |   |   |`* Re: Effect of CPP tagsBart
| |   |   | `- Re: Effect of CPP tagsDavid Brown
| |   |   `- Re: Effect of CPP tagsLawrence D'Oliveiro
| |   `* Re: Effect of CPP tagsDavid Brown
| |    +* Re: Effect of CPP tagsBart
| |    |+- Re: Effect of CPP tagsScott Lurndal
| |    |+* Re: Effect of CPP tagsKaz Kylheku
| |    ||+* Re: Effect of CPP tagsBart
| |    |||`* Re: Effect of CPP tagsBart
| |    ||| +- Re: Effect of CPP tagsKeith Thompson
| |    ||| `* Re: Effect of CPP tagsKaz Kylheku
| |    |||  `* Re: Effect of CPP tagsKeith Thompson
| |    |||   +* Re: Effect of CPP tagsJanis Papanagnou
| |    |||   |`- Re: Effect of CPP tagsKeith Thompson
| |    |||   `- Re: Effect of CPP tagsKaz Kylheku
| |    ||`- Re: Effect of CPP tagsScott Lurndal
| |    |`- Re: Effect of CPP tagsDavid Brown
| |    `* Re: Effect of CPP tagsLawrence D'Oliveiro
| |     +* Re: Effect of CPP tagsChris M. Thomasson
| |     |`* Re: Effect of CPP tagsLawrence D'Oliveiro
| |     | `* Re: Effect of CPP tagsChris M. Thomasson
| |     |  `* Re: Effect of CPP tagsLawrence D'Oliveiro
| |     |   +- Re: Effect of CPP tagsChris M. Thomasson
| |     |   +- Re: Effect of CPP tagsChris M. Thomasson
| |     |   +- Re: Effect of CPP tagsKaz Kylheku
| |     |   `- Re: Effect of CPP tagsBlue-Maned_Hawk
| |     +* Re: Effect of CPP tagsDavid Brown
| |     |+* Re: Effect of CPP tagsBart
| |     ||+* Re: Effect of CPP tagsDavid Brown
| |     |||+- Re: Effect of CPP tagsBlue-Maned_Hawk
| |     |||`* Re: Effect of CPP tagsBart
| |     ||| `* Re: Effect of CPP tagsDavid Brown
| |     |||  `* Re: Effect of CPP tagsBart
| |     |||   +* Re: Effect of CPP tagsChris M. Thomasson
| |     |||   |`- Re: Effect of CPP tagsChris M. Thomasson
| |     |||   +* Re: Effect of CPP tagstTh
| |     |||   |+- Re: Effect of CPP tagsLawrence D'Oliveiro
| |     |||   |+- Re: Effect of CPP tagsKaz Kylheku
| |     |||   |`* Re: Effect of CPP tagsBart
| |     |||   | `* Re: Effect of CPP tagsScott Lurndal
| |     |||   |  `* Re: Effect of CPP tagsBart
| |     |||   |   `* Re: Effect of CPP tagsDavid Brown
| |     |||   |    +* Re: Effect of CPP tagsKaz Kylheku
| |     |||   |    |`* Re: Effect of CPP tagsDavid Brown
| |     |||   |    | `- Re: Effect of CPP tagsKaz Kylheku
| |     |||   |    `* Re: Effect of CPP tagsBart
| |     |||   |     +* Re: Effect of CPP tagsScott Lurndal
| |     |||   |     |`* Re: Effect of CPP tagsBart
| |     |||   |     `* Re: Effect of CPP tagsDavid Brown
| |     |||   `* Re: Effect of CPP tagsDavid Brown
| |     ||`* Re: Effect of CPP tagsBlue-Maned_Hawk
| |     |`* Re: Effect of CPP tagsLawrence D'Oliveiro
| |     `* Re: Effect of CPP tagsKaz Kylheku
| +- Re: Effect of CPP tagsRichard Damon
| +* Re: Effect of CPP tagsKaz Kylheku
| +* Re: Effect of CPP tagsBlue-Maned_Hawk
| `- Re: Effect of CPP tagsLawrence D'Oliveiro
`* Re: Effect of CPP tagsTim Rentsch

Pages:123456789101112131415161718192021222324252627
Re: Effect of CPP tags

<20240112202354.93@kylheku.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=30879&group=comp.lang.c#30879

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.neodome.net!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 433-929-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c
Subject: Re: Effect of CPP tags
Date: Sat, 13 Jan 2024 04:31:27 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <20240112202354.93@kylheku.com>
References: <umet9d$3hir9$1@dont-email.me> <unmmnd$2jair$1@dont-email.me>
<87edepnich.fsf@nosuchdomain.example.com> <unmqsg$2jvva$1@dont-email.me>
<unmu6b$2kh81$1@dont-email.me> <20240110133135.834@kylheku.com>
<unn65q$2lr2i$1@dont-email.me> <20240110182957.444@kylheku.com>
<unokb1$2vmkh$1@dont-email.me> <20240111081109.274@kylheku.com>
<unpd89$33jlu$1@dont-email.me> <20240111133742.530@kylheku.com>
<unpt44$35qn1$1@dont-email.me> <unrfgs$3fo6l$1@dont-email.me>
<unrocu$3h2ah$1@dont-email.me> <65eoN.26119$9cLc.94@fx02.iad>
<unrum2$3i13c$1@dont-email.me> <unrvbg$3i4r4$1@dont-email.me>
<uns1qu$3ie6q$1@dont-email.me> <unt1va$3q8id$1@dont-email.me>
Injection-Date: Sat, 13 Jan 2024 04:31:27 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="bd4e71137e4ba0196eda5ccbe85f77b0";
logging-data="4012593"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Cmw3AEzT+QROVQ3yFoa3Hn6sE4BQGWB4="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:GACIYLMiwijSLgkC1JZyP2/QKQ4=
 by: Kaz Kylheku - Sat, 13 Jan 2024 04:31 UTC

On 2024-01-13, Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
> On 12.01.2024 19:53, bart wrote:
>> On 12/01/2024 18:10, Janis Papanagnou wrote:
>>> On 12.01.2024 18:59, bart wrote:
>>>> On 12/01/2024 16:50, Scott Lurndal wrote:
>>>>>
>>>>> $ cat file.c | cpp | c0 | c1 | c2 | as > file.o
>>>>
>>>> Using ">" on binary content?
>>>
>>> Of course.
>>>
>>>> That seems off.
>>>
>>> Why?
>>
>> Because when you see ">" on a command line, it means redirecting output
>> that would normally be shown as text on a console or terminal.
>
> I propose that you try to give up what you think is "normally" and
> base your knowledge and opinions on facts. Honestly, it will make
> communication generally easier and not make you look like a moron.

He has a point. If a program produces binary data on standard output,
then it will pretty much always have to be redirected.

Usually for programs that produce binary deliverables, you want an
option for standard output. Or perhaps the POSIX - convention: if the
file name given is - (ASCII hyphen), use standard output rather
than opening a file.

In C, standard output (stdio) isn't even a binary stream. It is a text
stream. On Unix that doesn't matter; there is no actual separate text
mode; the "b" modifier of fopen is ignored.

I don't think there is any way to write an ISO C strictly conforming
program which switches stdio to binary mode so that it can reliably
output binary data on standard output on any system. (I'm sure I looked
into this in the past, so if there is a way, I forgot about it.)

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca
NOTE: If you use Google Groups, I don't see you, unless you're whitelisted.

Re: Effect of CPP tags

<20240112203158.452@kylheku.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=30880&group=comp.lang.c#30880

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 433-929-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c
Subject: Re: Effect of CPP tags
Date: Sat, 13 Jan 2024 04:46:16 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 48
Message-ID: <20240112203158.452@kylheku.com>
References: <umet9d$3hir9$1@dont-email.me> <unmqsg$2jvva$1@dont-email.me>
<unmu6b$2kh81$1@dont-email.me> <20240110133135.834@kylheku.com>
<unn65q$2lr2i$1@dont-email.me> <20240110182957.444@kylheku.com>
<unokb1$2vmkh$1@dont-email.me> <20240111081109.274@kylheku.com>
<unpd89$33jlu$1@dont-email.me> <20240111133742.530@kylheku.com>
<unpt44$35qn1$1@dont-email.me> <unrfgs$3fo6l$1@dont-email.me>
<unrocu$3h2ah$1@dont-email.me> <65eoN.26119$9cLc.94@fx02.iad>
<unrum2$3i13c$1@dont-email.me> <_cgoN.55370$TSTa.20120@fx47.iad>
<uns6ji$3j39k$1@dont-email.me>
Injection-Date: Sat, 13 Jan 2024 04:46:16 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="bd4e71137e4ba0196eda5ccbe85f77b0";
logging-data="4021644"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/GnrZVEnb0Ag4uJrXy7sq8XCo77x4g5FE="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:CLNMVxRVt2kyx9pwYWRwT5BE2b8=
 by: Kaz Kylheku - Sat, 13 Jan 2024 04:46 UTC

On 2024-01-12, bart <bc@freeuk.com> wrote:
> I see. So forget just having intuitive behaviour. Or even behaviour that
> is compatible with related tools, so that:
>
> gcc -c file1.c produces file1.o
> gcc -c file1.c file2.c produces file1.o file2.o
>
> but:
>
> as file1.s produces a.out
> as file1.s file2.s produces a.out

Few people invoke "as" directly. It is not intended for human use,
regardless of how it is invoked.

You can invoke gcc on .s files:
gcc -c file1.s # file1.o pops out

gcc is a compiler driver, not a compiler; it reacts to suffixes.

If you change the suffix to .S, then gcc will run the C preprocessor on
the file. This can be very useful.

Besides being able to use include files, macros and conditionals,
one obvious benefit of that is that you get standard comment syntax.

Different targets of GNU as have different commenting conventions!!!
And this is for compatibility reasons with other assemblers for those
platforms.

Using C preprocessing, it's possible to make one source file work with
different implementations of as that use different assembly language
syntax: like if it happens that there is a proprietary as that has
different syntax from GNU as.

> You guys all deserve medals for being so tolerant.

By now you've almost wasted more keystrokes complaining about how some
command lines require several more tokens than they should, than you
will ever save in your entire lifetime by actually using your preferred
shorter command lines.

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca
NOTE: If you use Google Groups, I don't see you, unless you're whitelisted.

Re: Effect of CPP tags

<unt4un$3q5cl$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=30881&group=comp.lang.c#30881

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c
Subject: Re: Effect of CPP tags
Date: Fri, 12 Jan 2024 20:52:39 -0800
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <unt4un$3q5cl$1@dont-email.me>
References: <umet9d$3hir9$1@dont-email.me> <unmqsg$2jvva$1@dont-email.me>
<unmu6b$2kh81$1@dont-email.me> <20240110133135.834@kylheku.com>
<unn65q$2lr2i$1@dont-email.me> <20240110182957.444@kylheku.com>
<unokb1$2vmkh$1@dont-email.me> <20240111081109.274@kylheku.com>
<unpd89$33jlu$1@dont-email.me> <20240111133742.530@kylheku.com>
<unpt44$35qn1$1@dont-email.me> <unrfgs$3fo6l$1@dont-email.me>
<unrocu$3h2ah$1@dont-email.me> <65eoN.26119$9cLc.94@fx02.iad>
<unrum2$3i13c$1@dont-email.me> <_cgoN.55370$TSTa.20120@fx47.iad>
<uns6ji$3j39k$1@dont-email.me> <20240112203158.452@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 13 Jan 2024 04:52:39 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="77b5cd59e6fdd93d84da6cdd5829c73d";
logging-data="4003221"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX190pZSsMH7aP2xZ/8ctQ/aMGQsDoiQrxkM="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:MuDEvxZLuROF2Nf9WmXIuNxV/lw=
In-Reply-To: <20240112203158.452@kylheku.com>
Content-Language: en-US
 by: Chris M. Thomasson - Sat, 13 Jan 2024 04:52 UTC

On 1/12/2024 8:46 PM, Kaz Kylheku wrote:
> On 2024-01-12, bart <bc@freeuk.com> wrote:
>> I see. So forget just having intuitive behaviour. Or even behaviour that
>> is compatible with related tools, so that:
>>
>> gcc -c file1.c produces file1.o
>> gcc -c file1.c file2.c produces file1.o file2.o
>>
>> but:
>>
>> as file1.s produces a.out
>> as file1.s file2.s produces a.out
>
> Few people invoke "as" directly. It is not intended for human use,
> regardless of how it is invoked.

Fwiw, I had to use GAS to assemble my sync code. MASM over on in the
windows world. Then C++11 came out. Ahhhh!

[...]

Re: Effect of CPP tags

<unt57v$3q5cl$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=30882&group=comp.lang.c#30882

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c
Subject: Re: Effect of CPP tags
Date: Fri, 12 Jan 2024 20:57:35 -0800
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <unt57v$3q5cl$2@dont-email.me>
References: <umet9d$3hir9$1@dont-email.me> <unmqsg$2jvva$1@dont-email.me>
<unmu6b$2kh81$1@dont-email.me> <20240110133135.834@kylheku.com>
<unn65q$2lr2i$1@dont-email.me> <20240110182957.444@kylheku.com>
<unokb1$2vmkh$1@dont-email.me> <20240111081109.274@kylheku.com>
<unpd89$33jlu$1@dont-email.me> <20240111133742.530@kylheku.com>
<unpt44$35qn1$1@dont-email.me> <unrfgs$3fo6l$1@dont-email.me>
<unrocu$3h2ah$1@dont-email.me> <65eoN.26119$9cLc.94@fx02.iad>
<unrum2$3i13c$1@dont-email.me> <_cgoN.55370$TSTa.20120@fx47.iad>
<uns6ji$3j39k$1@dont-email.me> <20240112203158.452@kylheku.com>
<unt4un$3q5cl$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 13 Jan 2024 04:57:36 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="77b5cd59e6fdd93d84da6cdd5829c73d";
logging-data="4003221"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+kMxvkjMxICVfdPmMpxbU1ZZp7hwIj07k="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:iBNUB70ek21106STqO/U7dWylqI=
In-Reply-To: <unt4un$3q5cl$1@dont-email.me>
Content-Language: en-US
 by: Chris M. Thomasson - Sat, 13 Jan 2024 04:57 UTC

On 1/12/2024 8:52 PM, Chris M. Thomasson wrote:
> On 1/12/2024 8:46 PM, Kaz Kylheku wrote:
>> On 2024-01-12, bart <bc@freeuk.com> wrote:
>>> I see. So forget just having intuitive behaviour. Or even behaviour that
>>> is compatible with related tools, so that:
>>>
>>>      gcc -c file1.c           produces file1.o
>>>      gcc -c file1.c file2.c   produces file1.o file2.o
>>>
>>> but:
>>>
>>>      as     file1.s           produces a.out
>>>      as     file1.s file2.s   produces a.out
>>
>> Few people invoke "as" directly. It is not intended for human use,
>> regardless of how it is invoked.
>
> Fwiw, I had to use GAS to assemble my sync code. MASM over on in the
> windows world. Then C++11 came out. Ahhhh!
>
> [...]

AT&T syntax vs Intel:

https://youtu.be/A3Qc-2j-6Gc

lol...

Re: Effect of CPP tags

<unt7lp$3r1bt$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=30883&group=comp.lang.c#30883

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c
Subject: Re: Effect of CPP tags
Date: Fri, 12 Jan 2024 21:39:04 -0800
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <unt7lp$3r1bt$1@dont-email.me>
References: <umet9d$3hir9$1@dont-email.me> <unmqsg$2jvva$1@dont-email.me>
<unmu6b$2kh81$1@dont-email.me> <20240110133135.834@kylheku.com>
<unn65q$2lr2i$1@dont-email.me> <20240110182957.444@kylheku.com>
<unokb1$2vmkh$1@dont-email.me> <20240111081109.274@kylheku.com>
<unpd89$33jlu$1@dont-email.me> <20240111133742.530@kylheku.com>
<unpt44$35qn1$1@dont-email.me> <unrfgs$3fo6l$1@dont-email.me>
<unrocu$3h2ah$1@dont-email.me> <65eoN.26119$9cLc.94@fx02.iad>
<unrum2$3i13c$1@dont-email.me> <_cgoN.55370$TSTa.20120@fx47.iad>
<uns6ji$3j39k$1@dont-email.me> <20240112203158.452@kylheku.com>
<unt4un$3q5cl$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 13 Jan 2024 05:39:05 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="77b5cd59e6fdd93d84da6cdd5829c73d";
logging-data="4031869"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+dtTly9i1N7BxmNVmFoh6mLOuH/Rgh+n8="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:EWXxwljuAyjhd31EHueux/2b3Jg=
In-Reply-To: <unt4un$3q5cl$1@dont-email.me>
Content-Language: en-US
 by: Chris M. Thomasson - Sat, 13 Jan 2024 05:39 UTC

On 1/12/2024 8:52 PM, Chris M. Thomasson wrote:
> On 1/12/2024 8:46 PM, Kaz Kylheku wrote:
>> On 2024-01-12, bart <bc@freeuk.com> wrote:
>>> I see. So forget just having intuitive behaviour. Or even behaviour that
>>> is compatible with related tools, so that:
>>>
>>>      gcc -c file1.c           produces file1.o
>>>      gcc -c file1.c file2.c   produces file1.o file2.o
>>>
>>> but:
>>>
>>>      as     file1.s           produces a.out
>>>      as     file1.s file2.s   produces a.out
>>
>> Few people invoke "as" directly. It is not intended for human use,
>> regardless of how it is invoked.
>
> Fwiw, I had to use GAS to assemble my sync code. MASM over on in the
> windows world. Then C++11 came out. Ahhhh!
>
> [...]

Damn C11 has atomics but no threads over on Windows wrt current MSVC.
They have a nice support for C++11, but they left C11 in the dark.
Actually, I only know of one compiler that has atomics, membars and
threads, and that is:

http://www.smorgasbordet.com/pellesc

Know of any others with 100% full support for C11?

When C++11 came out, it was an interesting time for me because I got to
port some of my asm sync code over to standard C++. It was a good time:

https://youtu.be/OlbE0urutpM

;^)

Re: Effect of CPP tags

<unt8iv$3r6p1$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=30884&group=comp.lang.c#30884

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: comp.lang.c
Subject: Re: Effect of CPP tags
Date: Sat, 13 Jan 2024 06:54:38 +0100
Organization: A noiseless patient Spider
Lines: 231
Message-ID: <unt8iv$3r6p1$1@dont-email.me>
References: <umet9d$3hir9$1@dont-email.me> <unkblm$2566s$1@dont-email.me>
<8734v6p5s1.fsf@nosuchdomain.example.com> <unke3h$25ia0$1@dont-email.me>
<unkhql$25uof$1@dont-email.me> <unkkp3$26g9o$1@dont-email.me>
<87ttnmnjdb.fsf@nosuchdomain.example.com> <unkp1b$270v8$1@dont-email.me>
<ZSmnN.151217$c3Ea.70659@fx10.iad> <unkuhp$27i0v$2@dont-email.me>
<unlqqa$2eqts$2@dont-email.me> <U7ynN.143065$Wp_8.30410@fx17.iad>
<unmmnd$2jair$1@dont-email.me> <87edepnich.fsf@nosuchdomain.example.com>
<unmqsg$2jvva$1@dont-email.me> <unmu6b$2kh81$1@dont-email.me>
<20240110133135.834@kylheku.com> <unn65q$2lr2i$1@dont-email.me>
<20240110182957.444@kylheku.com> <unokb1$2vmkh$1@dont-email.me>
<20240111081109.274@kylheku.com> <unpd89$33jlu$1@dont-email.me>
<20240111133742.530@kylheku.com> <unpt44$35qn1$1@dont-email.me>
<unrfgs$3fo6l$1@dont-email.me> <unrocu$3h2ah$1@dont-email.me>
<unrpn1$3h8jl$1@dont-email.me> <unrro8$3hj71$1@dont-email.me>
<unruru$3i29g$1@dont-email.me> <uns9c6$3jis4$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 13 Jan 2024 05:54:39 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6951171f9c281a8d390a515a3f488c18";
logging-data="4037409"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19c+T5swoU3fa4NMWlaBPbn"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:6W/ssuK6AnJSBzRQ+1MpozvMGkk=
X-Enigmail-Draft-Status: N1110
In-Reply-To: <uns9c6$3jis4$1@dont-email.me>
 by: Janis Papanagnou - Sat, 13 Jan 2024 05:54 UTC

On 12.01.2024 22:01, bart wrote:
> On 12/01/2024 18:02, Janis Papanagnou wrote:
>> On 12.01.2024 18:09, bart wrote:
>>> On 12/01/2024 16:34, David Brown wrote:
>>>>>
>>>>> It looks like 'make' is competing with 'bash' then!
>>
>> Why don't you just read about those two tools and learn, instead
>> of repeatedly spouting such stupid statements of ignorance.
>
> Because I've repeatedly said I don't need them. Why can't you accept that?

Oh, I accept that. - But then I also expect that you don't spread
uninformed nonsense.

>
> How about YOU learn how to build software without those tools?

You're continuing to make silly and stupid statements. - I thought
(given you know DEC and CP/M) you are not a child any more, yet
behave so.

What makes you think that I wouldn't be able to do trivialities?

>
>> It's a _simple_ tool - not complex, as you've previously posted -
>> where you can define dependencies of entities, and define commands
>> that create the targets if entities that are required by the target
>> had changed. Its basic syntax and also its logic is simple,
>
>
>> And this is a crucial feature; for professional non-trivial projects.
>
> Come on then, tell me how big your projects are. Are they bigger than
> Scott Lurndal's 10Mloc example? (Which seems to be mostly Python source
> code.)

Again playing childish? ("Mine is bigger that yours", sort of?)

If you're interested what I actually do and have done, I can tell
you. (Not that it would address or solve any inherent issue *you*
obviously have.)

The past decade (or so) "my" personal projects were only private
hobbies, i.e. small toy-projects from a couple lines to a couple
thousand lines. But I when I speak about "professional software
engineering" I am rather speaking about the professional projects.

Some outline; I was engaged in projects of various sizes. I don't
recall the (not very significant) LOC numbers; these were anyway
only in one case relevant, in a refactoring project of a large
software component (used by at that time 1000+ software companies
for their products, and at that time by nearly 20 million people
in our country). The projects that I led myself or was member of
ranged from a handful on-site persons to many hundreds persons
spread across several sites and even different companies. And
the development durations from very short ranges up to years. The
areas for which the various software projects was developed were;
for the big telecommunication companies (e.g. BT, Dt. Telekom),
for the financial sector, for the state government). We used local
tools for our site(s), and also collaborative tools. The source
code or libraries were partly imported by collaborating companies,
locally they were spread across various project component file
systems. It had been tens thousands of files (I don't recall the
exact number) and millions of lines of code (dito.). Everyone in
the project was able to work on any of the sub-projects or parts,
no specific knowledge (say, about compiler or library versions)
was necessary by the individual member. Make was a standard tool
almost everywhere. Other tools as well; configuration management,
version control, test environments, project management tools, etc.

These were all professional software projects, as opposed to my
(or your) toy projects.

>
>>>
>>> That is something I've never needed done automatically in my own work (I
>>> do it manually as I will know my projects intimately when I'm working
>>> with them).
>>
>> Yes, we know. You've repeatedly shown that you are actually doing
>> small one-man-shows in projects that I can only call toy-projects.
>
> This is incredibly patronising.

I was merely pointing out that you explained yourself (a couple
of times) what sort of projects you are working on; I just named
them toy-projects to make apparent to you where we need a more
professional approach, and that you only address with your view
your personal small isolated programming bubble. It's still quoted
above with context, here again (for example):
"I will know my projects intimately when I'm working with them"
and you also mentioned I think more than once that you work alone.
You might admit that this sort of manageable programming is very
different from professional projects (as I depicted some above).

>
> What is wrong with one-man projects?

There's nothing wrong with them. (I said above that privately I
also do such "projects".) At some point of project complexity you
are advised to handle it more professionally, though. And that is
usually supported by sophisticated project tools and environments.

>
> What is wrong with writing non-professional software? Is that the same
> as non-commercial?

(The question is IMO quite irrelevant, not worth discussing.)

>
> Where is the line between a toy project and a non-toy project? Is it
> related to how lines or how many modules an application might have, or
> the size of the final binaries?
>
> Is it to do with the number of end-users?

There are a couple factors that you may also derive from above.
(Beyond that it's not worth discussing where one ends or the other
begins.)

It's worth to understand, though, that 'make' is not a complex or
unnecessary tool. If you understand its (simple) concept you can
(but don't need to) also use it for your small projects. You only
gain something, not lose anything; once you've overcome the barrier
of acceptance for a probably unknown or unfamiliar tool it's really
nice. (For example I maintain a dvds.csv file and generate a HTML
page for it that I then upload; why not put the generation process
commands and the simple dependencies in a Makefile and just call
'make' and/or 'make install'? - I have tons of little toy-projects
and instead of having everything in mind I have it either in a
Makefile or in a small shell script that occasionally gets into a
Makefile, so that I only need to do a 'make' in whatever context
I actually am.)

It should have meanwhile become obvious that no one forces you to
use Makefiles. And that there's also nothing to say again one's
toy-projects. - Only you cannot derive from such primitive cases
about the sensibility of useful (and even necessary) tools and be
constantly whining and complaining about them only because you
don't see the gain you have with the tools. And that you don't
know them and badmouth them doesn't make it easier to discuss;
you should at least inform yourself if you feel the need to piss
on well established tools.

>
> [...]
>
>
>> Professional projects have a different situation in many respects.
>> (I don't go into detail here, since you're anyway only interested
>> in your local comfort zone.)
>
> No, don't. I assume you've got some hugely complicated app with a
> million moving parts.

You again expose your habit to wrongly "assume" (= to make up)
things just because you don't understand the topic lack the
experience and avoid the facts.

> It's so big that nobody knows what's what. Your
> compilers are so slow that you HAVE to use dependencies to avoid
> spending 90% of the day twiddling your thumbs.

Clueless as you are you are not in the position to be cynical.

In the industry where I've done my professional projects we had
no slow computers. But we had also no toy-projects. Yes, some of
the (full!) compile runs lasted many hours; companies just cannot
afford that waste of time if you compile everything only because
you have no professional computer scientists that know how things
have to be done more sophisticated to reduce time. If you manage
the dependencies you can reduce the effort to compile a software
system to minutes if not seconds. - Ignoring this simple fact is
not only unprofessional, it's plain stupid.

>
> That's a million miles from the stuff I do, yet you still insist /I/
> should be using all the same complicated tools you do.

Despite you have repeatedly been told by many posters you still
repeat that nonsense. - No one said you should be using it. Are
you so pathological that you don't get it?

> [...]
>
> Let me tell about my own tools:

(You constantly do and no one cares.)

> [...]
>
> So, now tell me where the hell 'makefiles' would fit into that scenario.

It's answered above by me as an experience report and suggestion
to consider. It's (only) up to you to take action or ignore it.

>
> Just accept that some of this stuff is out of /your/ comfort zone.

You actually know nothing about my "comfort zone"; as opposed to
you I wasn't repeatedly complaining about this or that.


Click here to read the complete article
Re: Effect of CPP tags

<unt9m8$3rbk4$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=30885&group=comp.lang.c#30885

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: comp.lang.c
Subject: Re: Effect of CPP tags
Date: Sat, 13 Jan 2024 07:13:27 +0100
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <unt9m8$3rbk4$1@dont-email.me>
References: <umet9d$3hir9$1@dont-email.me> <unmmnd$2jair$1@dont-email.me>
<87edepnich.fsf@nosuchdomain.example.com> <unmqsg$2jvva$1@dont-email.me>
<unmu6b$2kh81$1@dont-email.me> <20240110133135.834@kylheku.com>
<unn65q$2lr2i$1@dont-email.me> <20240110182957.444@kylheku.com>
<unokb1$2vmkh$1@dont-email.me> <20240111081109.274@kylheku.com>
<unpd89$33jlu$1@dont-email.me> <20240111133742.530@kylheku.com>
<unpt44$35qn1$1@dont-email.me> <unrfgs$3fo6l$1@dont-email.me>
<unrocu$3h2ah$1@dont-email.me> <65eoN.26119$9cLc.94@fx02.iad>
<unrum2$3i13c$1@dont-email.me> <unrvbg$3i4r4$1@dont-email.me>
<uns1qu$3ie6q$1@dont-email.me> <unt1va$3q8id$1@dont-email.me>
<20240112202354.93@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 13 Jan 2024 06:13:28 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6951171f9c281a8d390a515a3f488c18";
logging-data="4042372"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18UJQIDt6Z7gc+0pOzc7ixG"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:V6rlGsE55hDblZ2Y14tvIA+IzQI=
In-Reply-To: <20240112202354.93@kylheku.com>
X-Enigmail-Draft-Status: N1110
 by: Janis Papanagnou - Sat, 13 Jan 2024 06:13 UTC

On 13.01.2024 05:31, Kaz Kylheku wrote:
>
> [...] If a program produces binary data on standard output,
> then it will pretty much always have to be redirected. [...]

The problem with that view is; what is a binary?

I have a *.c source code that contains literal UTF-8 characters.
If I 'cat' that file to the terminal I either see these UTF-8
characters or gibberish, depending on how I set up the terminal.

Unix is (almost) transparent WRT "binary" representations.

Similar with the file system. Are file names in other encodings
than ASCII (or any of the 8-bit extensions) binary? (It only
handles '\0' and '/' differently but the rest transparent.)

Janis

Re: Effect of CPP tags

<untu7e$3u3nv$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=30886&group=comp.lang.c#30886

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (bart)
Newsgroups: comp.lang.c
Subject: Re: Effect of CPP tags
Date: Sat, 13 Jan 2024 12:03:59 +0000
Organization: A noiseless patient Spider
Lines: 95
Message-ID: <untu7e$3u3nv$1@dont-email.me>
References: <umet9d$3hir9$1@dont-email.me> <unmmnd$2jair$1@dont-email.me>
<87edepnich.fsf@nosuchdomain.example.com> <unmqsg$2jvva$1@dont-email.me>
<unmu6b$2kh81$1@dont-email.me> <20240110133135.834@kylheku.com>
<unn65q$2lr2i$1@dont-email.me> <20240110182957.444@kylheku.com>
<unokb1$2vmkh$1@dont-email.me> <20240111081109.274@kylheku.com>
<unpd89$33jlu$1@dont-email.me> <20240111133742.530@kylheku.com>
<unpt44$35qn1$1@dont-email.me> <unrfgs$3fo6l$1@dont-email.me>
<unrocu$3h2ah$1@dont-email.me> <unrpn1$3h8jl$1@dont-email.me>
<unrro8$3hj71$1@dont-email.me> <unruru$3i29g$1@dont-email.me>
<uns9c6$3jis4$1@dont-email.me> <20240112134536.695@kylheku.com>
<unskit$3l154$1@dont-email.me> <87zfxakqjd.fsf@nosuchdomain.example.com>
<unso1g$3lb69$2@dont-email.me> <20240112200241.728@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 13 Jan 2024 12:03:58 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="833f441e74b6ee81a97bf2de604df9d5";
logging-data="4132607"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19205B2IvA7iUb0r1l7zClZLIQZzkr9+XI="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:4mgeLfQlU1afvk2qclvDsFEmDwc=
Content-Language: en-GB
In-Reply-To: <20240112200241.728@kylheku.com>
 by: bart - Sat, 13 Jan 2024 12:03 UTC

On 13/01/2024 04:17, Kaz Kylheku wrote:
> On 2024-01-13, bart <bc@freeuk.com> wrote:
>> On 13/01/2024 00:47, Keith Thompson wrote:
>>> bart <bc@freeuk.com> writes:
>>
>>> It happens that once you have a working Makefile, it works equally
>>> well either to rebuild a project after a single change, or to build
>>> an entire project from scratch. Someone could probably create
>>> a simpler version of "make" that doesn't look at dependencies,
>>> and that always rebuilds everything. Such a tool would be worse
>>> than "make" for building projects during development, and not
>>> significantly better than "make" for building projects from scratch.
>>>
>>> And that's ignoring the "-j" option, which allows "make" to execute
>>> multiple steps in parallel. That works only because "make" knows
>>> about dependencies, and it can result in a full build from scratch
>>> finishing much more quickly. A simple script that just compiles
>>> each file isn't likely to do that. You can typically specify a
>>> maximum number of parallel jobs equal to the number of CPUs on your
>>> build system, e.g., `make -j $(nproc)`.
>>
>> That's a reasonable thing to do. But how does make do it? Can't a
>> compiler apply the same approach if N files have been submitted?
>
> Yes. And in fact, languages with good module support like Modula-2
> don't need external make utilities.

Finally somebody admitting that some languages may not need make as much.

My language from 25 years ago didn't have compiler-supported modules but
projects were structured in a certain way: all modules shared the same
project-wide header file (which could group other headers).

So a change in one module required compiling only that module. A change
in a header usually required all modules to be recompiled. (Including
the headers: in this scheme, they could contain their own code and
functions which existed in an separate, outer scope.)

If I'd used 'make', the dependency graph would only have told me what I
already knew.

My current language has language- and compiler-supported modules, but is
designed for whole-program compilation and is very fast as previously
stated.

Modules can be grouped into sub-programs, and very large programs could
turn those into dynamic libraries that are compiled separately, but I'm
a long way from needing to do that.

>>
>> After all C allows independent compilation of modules. (Something my
>> language doesn't have; there the granularity is an EXE file, not a module.)
>
> C has no specific syntax for expressing modules. It has translation
> units, with preprocessor header files used for interfacing.

OK, independent compilation of translation units. It has header/include
files which can recursively include other headers, and that can be
shared in an ad hoc manner across multiple translation units.

A large program needs selective and parallel compilation more,
especially as people prefer slow compilers for C.

Since if you have 50 modules (translation units) and each uses the same
giant header files (GTK, windows etc), those headers will normally be
processed 50 times.

In my current language that would only be done once (and using a
condensed form of those APIs which is a fraction the size of the C headers).

> A C compiler could, instead of emitting makefile fragments, keep
> the dependency information in some repository which it itself
> understands, in order to recompile what is necessary.
>
> Only problem is that that compiler would be reimplementing most of make,
> probably badly, and every other similar compiler would have to do the
> same in order to have the same benefit.

We're now talking about the part of make which is about building what I
call a 'program unit': a single EXE or DLL file in Windows terms. (In my
stuff, that can include a single OBJ representing multiple modules.)

I feel this stuff is ideally done in the compiler. But the nature of C
makes that awkward to do. How does gcc, say, have any idea of the extent
of a program? It might not use a shared header to link a distant module
to the rest. And if you do:

gcc hello.c hello.c

it only has an indication that something is wrong when it tries to link
and there are two 'main' functions being exported.

This can be tackled by organising projects according to guidelines, but
it is still largely C from 1972.

Re: Effect of CPP tags

<unu5gg$3v5e2$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=30887&group=comp.lang.c#30887

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (bart)
Newsgroups: comp.lang.c
Subject: Re: Effect of CPP tags
Date: Sat, 13 Jan 2024 14:08:16 +0000
Organization: A noiseless patient Spider
Lines: 175
Message-ID: <unu5gg$3v5e2$1@dont-email.me>
References: <umet9d$3hir9$1@dont-email.me>
<8734v6p5s1.fsf@nosuchdomain.example.com> <unke3h$25ia0$1@dont-email.me>
<unkhql$25uof$1@dont-email.me> <unkkp3$26g9o$1@dont-email.me>
<87ttnmnjdb.fsf@nosuchdomain.example.com> <unkp1b$270v8$1@dont-email.me>
<ZSmnN.151217$c3Ea.70659@fx10.iad> <unkuhp$27i0v$2@dont-email.me>
<unlqqa$2eqts$2@dont-email.me> <U7ynN.143065$Wp_8.30410@fx17.iad>
<unmmnd$2jair$1@dont-email.me> <87edepnich.fsf@nosuchdomain.example.com>
<unmqsg$2jvva$1@dont-email.me> <unmu6b$2kh81$1@dont-email.me>
<20240110133135.834@kylheku.com> <unn65q$2lr2i$1@dont-email.me>
<20240110182957.444@kylheku.com> <unokb1$2vmkh$1@dont-email.me>
<20240111081109.274@kylheku.com> <unpd89$33jlu$1@dont-email.me>
<20240111133742.530@kylheku.com> <unpt44$35qn1$1@dont-email.me>
<unrfgs$3fo6l$1@dont-email.me> <unrocu$3h2ah$1@dont-email.me>
<unrpn1$3h8jl$1@dont-email.me> <unrro8$3hj71$1@dont-email.me>
<unruru$3i29g$1@dont-email.me> <uns9c6$3jis4$1@dont-email.me>
<unt8iv$3r6p1$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 13 Jan 2024 14:08:16 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="833f441e74b6ee81a97bf2de604df9d5";
logging-data="4167106"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/V+qCZuic+e5k3YEDuqXDso79ySjWotJA="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:49Ns0SdumKYF2JhXHZ3ty6JfiuU=
In-Reply-To: <unt8iv$3r6p1$1@dont-email.me>
Content-Language: en-GB
 by: bart - Sat, 13 Jan 2024 14:08 UTC

On 13/01/2024 05:54, Janis Papanagnou wrote:
> On 12.01.2024 22:01, bart wrote:

>> Come on then, tell me how big your projects are. Are they bigger than
>> Scott Lurndal's 10Mloc example? (Which seems to be mostly Python source
>> code.)
>
> Again playing childish? ("Mine is bigger that yours", sort of?)

No. I know that my projects are very small compared to some in the
industry. The sizes of OSes and all sorts of apps tell me that.

I was interested in where you draw the line.

(This is the same with every kind of product. Some companies produce a
787 airliner with 5 million components, others make a plastic comb with
just one.)

Some 90% of the binaries in my Windows 11 OS are under 1MB. Each of
those forms a 'program unit' which is what my comments about 'building'
are about: how to compile the multiple source files into one binary.

Beyond that you get the problems of creating large 'systems' which is
what you seem to be into.

For the first, I don't rate the use of 'make', not with the designs I've
made in languages and compilers.

For the other, the use of make seems archaic.

> If you're interested what I actually do and have done, I can tell
> you. (Not that it would address or solve any inherent issue *you*
> obviously have.)
>
> The past decade (or so) "my" personal projects were only private
> hobbies, i.e. small toy-projects from a couple lines to a couple
> thousand lines. But I when I speak about "professional software
> engineering" I am rather speaking about the professional projects.
>
> Some outline; I was engaged in projects of various sizes. I don't
> recall the (not very significant) LOC numbers; these were anyway
> only in one case relevant, in a refactoring project of a large
> software component (used by at that time 1000+ software companies
> for their products, and at that time by nearly 20 million people
> in our country). The projects that I led myself or was member of
> ranged from a handful on-site persons to many hundreds persons
> spread across several sites and even different companies. And
> the development durations from very short ranges up to years. The
> areas for which the various software projects was developed were;
> for the big telecommunication companies (e.g. BT, Dt. Telekom),
> for the financial sector, for the state government). We used local
> tools for our site(s), and also collaborative tools. The source
> code or libraries were partly imported by collaborating companies,
> locally they were spread across various project component file
> systems. It had been tens thousands of files (I don't recall the
> exact number) and millions of lines of code (dito.). Everyone in
> the project was able to work on any of the sub-projects or parts,
> no specific knowledge (say, about compiler or library versions)
> was necessary by the individual member. Make was a standard tool
> almost everywhere. Other tools as well; configuration management,
> version control, test environments, project management tools, etc.
>
> These were all professional software projects, as opposed to my
> (or your) toy projects.

OK, thanks. So this is more like you working for a large organisation,
having extensive premises, perhaps multiple sites, HR departments,
finance, sales, managers, directors, receptionists ...

While some people like me have worked for a small company of 10 or 20
people. I was also self-employed for a decade. In both cases
professional work was done with real, paying customers, just like a
million such small businesses. We sold products in a half a dozen countries.

You might appreciate then that in a small organisation things might be
done differently, more simply, with fewer overheads and more informally.

This can also mirror what happens with software projects. Most
open-source software I've wanted to build has been on the scale of a
small business or even a one-man operation.

Yet next to their small premises is a giant office-block containing all
the auto-config and makefile stuff that you are obliged to deal with if
you want to use their product.

>> What is wrong with one-man projects?
>
> There's nothing wrong with them. (I said above that privately I
> also do such "projects".) At some point of project complexity you
> are advised to handle it more professionally, though. And that is
> usually supported by sophisticated project tools and environments.

My situation is different: I created my own languages, working tools and
environment. I've always made it a part of development, to ensure a fast
development cycle and to be productive.

Complexity was kept under control. Projects were necessarily small
(because it was just me, but also because of limited machine resources).

> It's worth to understand, though, that 'make' is not a complex or
> unnecessary tool. If you understand its (simple) concept you can
> (but don't need to) also use it for your small projects.

If I was to use 'make', I would have to implement it myself. This I once
started to do, until I started reading the manual, and it went on for
ever. I then disliked it even more.

> You only
> gain something, not lose anything; once you've overcome the barrier
> of acceptance for a probably unknown or unfamiliar tool it's really
> nice. (For example I maintain a dvds.csv file and generate a HTML
> page for it that I then upload; why not put the generation process
> commands and the simple dependencies in a Makefile and just call
> 'make' and/or 'make install'? - I have tons of little toy-projects
> and instead of having everything in mind I have it either in a
> Makefile or in a small shell script that occasionally gets into a
> Makefile, so that I only need to do a 'make' in whatever context
> I actually am.)

It sounds like a classic 'hammer and nail' scenario. (If your only tool
is a hammer, every task looks like a nail.)

> It should have meanwhile become obvious that no one forces you to
> use Makefiles.

That is actually not true. Clearly, I don't use them for my own stuff.

But sometimes I want to build what ought to be a straightforward
program, but the necessary info is hidden inside a makefile.

Or in the case of LIBJPEG, inside 15 makefiles, one for each compiler
(for that famously portable language known as C).

However, one was a generic makefile which I was able to use, in a rare
case of make actual working.

I was then able to capture the commands generated, and so determine what
the relevant files were.

This was somewhat complex as it first produced libraries in the form of
..a files, which were then used with further .c for building multiple EXEs.

All /I/ needed are the list of C files to submit to a compiler for each
program. Here, 'make' was just one huge obstacle. Why don't the docs
just list the relevant files (as well the makefiles)?

> And that there's also nothing to say again one's
> toy-projects.

LIBJPEG is not up there were your huge professional product, but it is
hardly a toy. It could easily have been one of the libraries you used.
(It's just rather over the top for a JPEG encoder/decoder!)

> In the industry where I've done my professional projects we had
> no slow computers. But we had also no toy-projects. Yes, some of
> the (full!) compile runs lasted many hours

So you had slow compilers. Either that or your product was huge.

A fast compiler like tcc can generate 10MB of binaries per second per
core (even on my slow PC).

Running it for one hour would create a 36GB binary.

OK, your compilers will do more analysis and will optimise, but it still
sounds slow. No wonder you have to use make!

I take it there was no one whose job it was to overview the efficiency
of the overall process. But presumably changing languages and tools or
even just overhauling the software to remove cruft was out of the question.

However, unless the end product was one monolithic binary, you'd be able
to parallelise some processes - or was that already done and it still
took hours?

Re: Effect of CPP tags

<EGxoN.298030$83n7.184008@fx18.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=30888&group=comp.lang.c#30888

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx18.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: Effect of CPP tags
Newsgroups: comp.lang.c
References: <umet9d$3hir9$1@dont-email.me> <unpd89$33jlu$1@dont-email.me> <20240111133742.530@kylheku.com> <unpt44$35qn1$1@dont-email.me> <unrfgs$3fo6l$1@dont-email.me> <unrocu$3h2ah$1@dont-email.me> <unrpn1$3h8jl$1@dont-email.me> <unrro8$3hj71$1@dont-email.me> <unruru$3i29g$1@dont-email.me> <uns9c6$3jis4$1@dont-email.me> <20240112134536.695@kylheku.com> <unskit$3l154$1@dont-email.me> <87zfxakqjd.fsf@nosuchdomain.example.com> <unso1g$3lb69$2@dont-email.me> <87v87yko35.fsf@nosuchdomain.example.com>
Lines: 36
Message-ID: <EGxoN.298030$83n7.184008@fx18.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Sat, 13 Jan 2024 15:07:16 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Sat, 13 Jan 2024 15:07:16 GMT
X-Received-Bytes: 2701
 by: Scott Lurndal - Sat, 13 Jan 2024 15:07 UTC

Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:
>bart <bc@freeuk.com> writes:
>> On 13/01/2024 00:47, Keith Thompson wrote:
>>> bart <bc@freeuk.com> writes:
>>
>>> It happens that once you have a working Makefile, it works equally
>>> well either to rebuild a project after a single change, or to build
>>> an entire project from scratch. Someone could probably create
>>> a simpler version of "make" that doesn't look at dependencies,
>>> and that always rebuilds everything. Such a tool would be worse
>>> than "make" for building projects during development, and not
>>> significantly better than "make" for building projects from scratch.
>>> And that's ignoring the "-j" option, which allows "make" to execute
>>> multiple steps in parallel. That works only because "make" knows
>>> about dependencies, and it can result in a full build from scratch
>>> finishing much more quickly. A simple script that just compiles
>>> each file isn't likely to do that. You can typically specify a
>>> maximum number of parallel jobs equal to the number of CPUs on your
>>> build system, e.g., `make -j $(nproc)`.
>>
>> That's a reasonable thing to do. But how does make do it? Can't a
>> compiler apply the same approach if N files have been submitted?
>
>I've never looked into it.
>
>I suppose it could be done, but IMHO compilers are complex enough
>without adding logic to perform parallel compilations, especially since
>"make" already solves that problem.

The most common example of submitting N files for compilation
in a single compile command would be java.

Even then, it wasn't sufficient, so ant was developed.

https://ant.apache.org/

Re: Effect of CPP tags

<OuyoN.298037$83n7.96919@fx18.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=30889&group=comp.lang.c#30889

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx18.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: Effect of CPP tags
Newsgroups: comp.lang.c
References: <umet9d$3hir9$1@dont-email.me> <20240111133742.530@kylheku.com> <unpt44$35qn1$1@dont-email.me> <unrfgs$3fo6l$1@dont-email.me> <unrocu$3h2ah$1@dont-email.me> <unrpn1$3h8jl$1@dont-email.me> <unrro8$3hj71$1@dont-email.me> <unruru$3i29g$1@dont-email.me> <uns9c6$3jis4$1@dont-email.me> <20240112134536.695@kylheku.com> <unskit$3l154$1@dont-email.me> <87zfxakqjd.fsf@nosuchdomain.example.com> <unso1g$3lb69$2@dont-email.me> <87v87yko35.fsf@nosuchdomain.example.com> <EGxoN.298030$83n7.184008@fx18.iad>
Lines: 40
Message-ID: <OuyoN.298037$83n7.96919@fx18.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Sat, 13 Jan 2024 16:02:54 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Sat, 13 Jan 2024 16:02:54 GMT
X-Received-Bytes: 3068
 by: Scott Lurndal - Sat, 13 Jan 2024 16:02 UTC

scott@slp53.sl.home (Scott Lurndal) writes:
>Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:
>>bart <bc@freeuk.com> writes:
>>> On 13/01/2024 00:47, Keith Thompson wrote:
>>>> bart <bc@freeuk.com> writes:
>>>
>>>> It happens that once you have a working Makefile, it works equally
>>>> well either to rebuild a project after a single change, or to build
>>>> an entire project from scratch. Someone could probably create
>>>> a simpler version of "make" that doesn't look at dependencies,
>>>> and that always rebuilds everything. Such a tool would be worse
>>>> than "make" for building projects during development, and not
>>>> significantly better than "make" for building projects from scratch.
>>>> And that's ignoring the "-j" option, which allows "make" to execute
>>>> multiple steps in parallel. That works only because "make" knows
>>>> about dependencies, and it can result in a full build from scratch
>>>> finishing much more quickly. A simple script that just compiles
>>>> each file isn't likely to do that. You can typically specify a
>>>> maximum number of parallel jobs equal to the number of CPUs on your
>>>> build system, e.g., `make -j $(nproc)`.
>>>
>>> That's a reasonable thing to do. But how does make do it? Can't a
>>> compiler apply the same approach if N files have been submitted?
>>
>>I've never looked into it.

And it's rather irrelevent, as make handles projects with multiple
languages as well as projects which generate compilable collateral
during the build process.

The project that I posted about earlier has python elements, C
elements, C++ elements and some custom shell scripts to generate
header files used by the C and C++ elements. All of this
is sequenced (dependency graph) by the make utility and to
the extent possible, uses all the hardware resources available
with parallel job submission (subject to dependency constraints).

And the jobs need not be submitted locally, they can be easily
farmed out to hundreds of hosts in a grid environment.

Re: Effect of CPP tags

<87o7dolxkj.fsf@nosuchdomain.example.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=30890&group=comp.lang.c#30890

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.lang.c
Subject: Re: Effect of CPP tags
Date: Sat, 13 Jan 2024 13:42:36 -0800
Organization: None to speak of
Lines: 25
Message-ID: <87o7dolxkj.fsf@nosuchdomain.example.com>
References: <umet9d$3hir9$1@dont-email.me> <20240110133135.834@kylheku.com>
<unn65q$2lr2i$1@dont-email.me> <20240110182957.444@kylheku.com>
<unokb1$2vmkh$1@dont-email.me> <20240111081109.274@kylheku.com>
<unpd89$33jlu$1@dont-email.me> <20240111133742.530@kylheku.com>
<unpt44$35qn1$1@dont-email.me> <unrfgs$3fo6l$1@dont-email.me>
<unrocu$3h2ah$1@dont-email.me> <unrpn1$3h8jl$1@dont-email.me>
<unrro8$3hj71$1@dont-email.me> <unruru$3i29g$1@dont-email.me>
<uns9c6$3jis4$1@dont-email.me> <20240112134536.695@kylheku.com>
<unskit$3l154$1@dont-email.me>
<87zfxakqjd.fsf@nosuchdomain.example.com>
<unso1g$3lb69$2@dont-email.me> <20240112200241.728@kylheku.com>
<untu7e$3u3nv$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="033a6813111c3c17159ba08213684694";
logging-data="118848"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+b9g91urBm1LCw+UBEohh5"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:F9T4tWxAvsQO0ebY0f5B2j+1xRw=
sha1:AtoAcziTn+fopldsaESNoHesHnA=
 by: Keith Thompson - Sat, 13 Jan 2024 21:42 UTC

bart <bc@freeuk.com> writes:
> On 13/01/2024 04:17, Kaz Kylheku wrote:
>> On 2024-01-13, bart <bc@freeuk.com> wrote:
[...]
>>> That's a reasonable thing to do. But how does make do it? Can't a
>>> compiler apply the same approach if N files have been submitted?
>> Yes. And in fact, languages with good module support like Modula-2
>> don't need external make utilities.
>
> Finally somebody admitting that some languages may not need make as much.

Bart, seriously, what the hell are you talking about?

It's true that some languages don't need "make" as much as C does.

Nobody here has said otherwise, likely because other languages are
largely off-topic here in comp.lang.c.

By all means, don't use "make". Nobody wants you to use it. Nobody
thinks you need to care how it works.

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Medtronic
void Void(void) { Void(); } /* The recursive call of the void */

Re: Effect of CPP tags

<unv3ec$48rm$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=30891&group=comp.lang.c#30891

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (bart)
Newsgroups: comp.lang.c
Subject: Re: Effect of CPP tags
Date: Sat, 13 Jan 2024 22:39:10 +0000
Organization: A noiseless patient Spider
Lines: 131
Message-ID: <unv3ec$48rm$1@dont-email.me>
References: <umet9d$3hir9$1@dont-email.me> <20240110133135.834@kylheku.com>
<unn65q$2lr2i$1@dont-email.me> <20240110182957.444@kylheku.com>
<unokb1$2vmkh$1@dont-email.me> <20240111081109.274@kylheku.com>
<unpd89$33jlu$1@dont-email.me> <20240111133742.530@kylheku.com>
<unpt44$35qn1$1@dont-email.me> <unrfgs$3fo6l$1@dont-email.me>
<unrocu$3h2ah$1@dont-email.me> <unrpn1$3h8jl$1@dont-email.me>
<unrro8$3hj71$1@dont-email.me> <unruru$3i29g$1@dont-email.me>
<uns9c6$3jis4$1@dont-email.me> <20240112134536.695@kylheku.com>
<unskit$3l154$1@dont-email.me> <87zfxakqjd.fsf@nosuchdomain.example.com>
<unso1g$3lb69$2@dont-email.me> <20240112200241.728@kylheku.com>
<untu7e$3u3nv$1@dont-email.me> <87o7dolxkj.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 13 Jan 2024 22:39:08 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="833f441e74b6ee81a97bf2de604df9d5";
logging-data="140150"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18qJyRbnZnUuN4GNtpGbrXb5UrI6VdpWrc="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:u9EOO7iwU+CBfIoj1O+3jk3+lRg=
Content-Language: en-GB
In-Reply-To: <87o7dolxkj.fsf@nosuchdomain.example.com>
 by: bart - Sat, 13 Jan 2024 22:39 UTC

On 13/01/2024 21:42, Keith Thompson wrote:
> bart <bc@freeuk.com> writes:
>> On 13/01/2024 04:17, Kaz Kylheku wrote:
>>> On 2024-01-13, bart <bc@freeuk.com> wrote:
> [...]
>>>> That's a reasonable thing to do. But how does make do it? Can't a
>>>> compiler apply the same approach if N files have been submitted?
>>> Yes. And in fact, languages with good module support like Modula-2
>>> don't need external make utilities.
>>
>> Finally somebody admitting that some languages may not need make as much.
>
> Bart, seriously, what the hell are you talking about?
>
> It's true that some languages don't need "make" as much as C does.
>
> Nobody here has said otherwise, likely because other languages are
> largely off-topic here in comp.lang.c.

Except 'make'? I get the impression that most programs written in C have
a large component written in 'make' too. A component you can't always
ignore since essential build info is encoded in it.

In the case of the GMP project that came up, a language purportedly
written in C, it seemed to depend on auto-config, make, bash, m4, awk,
gcc-options and god knows what else.

It would be ironic that, if I was to write an application in C, it would
be 100% C with no other language involved. Not even any compiler options
(not with my compiler anyway).

I think I'd be the only one here doing that!

(I wonder: are people here so addicted to 'make' that they don't
actually know how to describe a project without it?)

>
> By all means, don't use "make". Nobody wants you to use it.

Lots of people are saying I'm not being forced to, for example:

JP:
> It should have meanwhile become obvious that no one forces you to
> use Makefiles.

JP:
> - No one said you should be using it.

But who then strongly hint that I should be using it:

JP:
> Why don't you just read about those two tools and learn

JP:
> It's very interesting that despite your very small and restricted
> experience you'd decide to follow the "not invented here" principle
> instead of using long established, refined, and well accepted tools
> that are already available (and even for free), and reliably work.

(Well, I'm not a sheep. And when I started out, I /had/ to invent stuff
because it wasn't otherwise available. Doing so I made a discovery: it
worked great! )

------------------------
Here are some additional comments for everybody (KT can stop reading).

This is my simpified view of software development, split into four broad
activities:

N = 1 | N > 1
-------------------------------
| | |
Developer | (A) | (C) |
| | |
-------------------------------
| | |
Final | (B) | (D) |
| | |
-------------------------------

N
This is the number of program units that are involved. A unit
is a single binary file (eg. EXE or DLL on Windows).

Developer

This is the work done by a developer on a daily basis, eg.
editing, compiling and testing the same project 100 times a day.

Final

This relates to a one-time build of the project, usually of
some working version. It may be done remotely by someone
else, working from source code.

Here is how /I/ usually deal with those different scenarios:

(A) I use two tools: a compiler, and a simple IDE. They both work from
a simple list of source and support files.

(B) This is the same as (A) but stripped down: only a compiler is
used. There may be a minimal, flat, set of files. Multiple source
files are sometimes converted to one monolithic file for less
hassle.

(C) and (D) I'm not going to go into these. The requirements are
going to be too diverse. Anyone who's a programmer will know how to
organise this stuff.

So, as I understand what everybody else as been saying about how they
work, it seems to looks like this:

(A) The primary tool is make.

(B) The primary tool is make.

(C) The primary tool is make.

(D) The primary tool is make.

(Nobody here has mentioned IDEs, but that is a personal choice that
shouldn't be foisted on anyone else. Everyone is big on make though.)

When I want to build someone else's open source project, I would prefer
to get (B) or (D). I nearly always get (A) or (C). And with 'make',
which on Windows, often doesn't work.

So, make is being used not just as a substitute build system when
creating ONE executable file. But it is also used to do everything else.
I see that as a mistake.

Re: Effect of CPP tags

<unv4r1$2va$1@news.gegeweb.eu>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=30892&group=comp.lang.c#30892

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.nntp4.net!news.gegeweb.eu!gegeweb.org!.POSTED.2a01:cb19:8674:1100:b05d:475d:e3f:3dff!not-for-mail
From: tth...@none.invalid (tTh)
Newsgroups: comp.lang.c
Subject: Re: Effect of CPP tags
Date: Sun, 14 Jan 2024 00:02:57 +0100
Organization: none
Message-ID: <unv4r1$2va$1@news.gegeweb.eu>
References: <umet9d$3hir9$1@dont-email.me> <20240110133135.834@kylheku.com>
<unn65q$2lr2i$1@dont-email.me> <20240110182957.444@kylheku.com>
<unokb1$2vmkh$1@dont-email.me> <20240111081109.274@kylheku.com>
<unpd89$33jlu$1@dont-email.me> <20240111133742.530@kylheku.com>
<unpt44$35qn1$1@dont-email.me> <unrfgs$3fo6l$1@dont-email.me>
<unrocu$3h2ah$1@dont-email.me> <unrpn1$3h8jl$1@dont-email.me>
<unrro8$3hj71$1@dont-email.me> <unruru$3i29g$1@dont-email.me>
<uns9c6$3jis4$1@dont-email.me> <20240112134536.695@kylheku.com>
<unskit$3l154$1@dont-email.me> <87zfxakqjd.fsf@nosuchdomain.example.com>
<unso1g$3lb69$2@dont-email.me> <20240112200241.728@kylheku.com>
<untu7e$3u3nv$1@dont-email.me> <87o7dolxkj.fsf@nosuchdomain.example.com>
<unv3ec$48rm$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 13 Jan 2024 23:02:57 -0000 (UTC)
Injection-Info: news.gegeweb.eu; posting-account="tontonth@usenet.local"; posting-host="2a01:cb19:8674:1100:b05d:475d:e3f:3dff";
logging-data="3050"; mail-complaints-to="abuse@gegeweb.eu"
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <unv3ec$48rm$1@dont-email.me>
Cancel-Lock: sha256:ENvbKWEs0y9OjtuEQpVtnEDlE3NQKpYlZCiLUjAeioY=
 by: tTh - Sat, 13 Jan 2024 23:02 UTC

On 1/13/24 23:39, bart wrote:

> It would be ironic that, if I was to write an application in C, it would
> be 100% C with no other language involved. Not even any compiler options
> (not with my compiler anyway).

Is your application can be compiled on Linux, OpenBSD, Solaris,
HP-UX, FreeBSD, AIX, MacOSX and a few others commonly used
operating system ?

--
+---------------------------------------------------------------------+
| https://tube.interhacker.space/a/tth/video-channels |
+---------------------------------------------------------------------+

Re: Effect of CPP tags

<87jzoclss6.fsf@nosuchdomain.example.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=30893&group=comp.lang.c#30893

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.lang.c
Subject: Re: Effect of CPP tags
Date: Sat, 13 Jan 2024 15:26:01 -0800
Organization: None to speak of
Lines: 34
Message-ID: <87jzoclss6.fsf@nosuchdomain.example.com>
References: <umet9d$3hir9$1@dont-email.me> <20240110182957.444@kylheku.com>
<unokb1$2vmkh$1@dont-email.me> <20240111081109.274@kylheku.com>
<unpd89$33jlu$1@dont-email.me> <20240111133742.530@kylheku.com>
<unpt44$35qn1$1@dont-email.me> <unrfgs$3fo6l$1@dont-email.me>
<unrocu$3h2ah$1@dont-email.me> <unrpn1$3h8jl$1@dont-email.me>
<unrro8$3hj71$1@dont-email.me> <unruru$3i29g$1@dont-email.me>
<uns9c6$3jis4$1@dont-email.me> <20240112134536.695@kylheku.com>
<unskit$3l154$1@dont-email.me>
<87zfxakqjd.fsf@nosuchdomain.example.com>
<unso1g$3lb69$2@dont-email.me> <20240112200241.728@kylheku.com>
<untu7e$3u3nv$1@dont-email.me>
<87o7dolxkj.fsf@nosuchdomain.example.com>
<unv3ec$48rm$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="4116cf9ae561cdae21926f55fbd181b2";
logging-data="152927"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18NkT22SzHFqsS+i3ut3oSx"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:gPW1Dpg6BI5ibPW/Oz8iPXrWqt0=
sha1:Tb4ThYP8y17dcp9ieEqFCW5I20Q=
 by: Keith Thompson - Sat, 13 Jan 2024 23:26 UTC

bart <bc@freeuk.com> writes:
> On 13/01/2024 21:42, Keith Thompson wrote:
>> bart <bc@freeuk.com> writes:
>>> On 13/01/2024 04:17, Kaz Kylheku wrote:
>>>> On 2024-01-13, bart <bc@freeuk.com> wrote:
>> [...]
>>>>> That's a reasonable thing to do. But how does make do it? Can't a
>>>>> compiler apply the same approach if N files have been submitted?
>>>> Yes. And in fact, languages with good module support like Modula-2
>>>> don't need external make utilities.
>>>
>>> Finally somebody admitting that some languages may not need make as much.
>> Bart, seriously, what the hell are you talking about?
>> It's true that some languages don't need "make" as much as C does.
>> Nobody here has said otherwise, likely because other languages are
>> largely off-topic here in comp.lang.c.
>
> Except 'make'? I get the impression that most programs written in C
> have a large component written in 'make' too. A component you can't
> always ignore since essential build info is encoded in it.

Most? I don't know. Many? Sure.

You wrote, "Finally somebody admitting that some languages may not need
make as much.". Has anyone here claimed otherwise? If not, why do you
find Kaz's statement so remarkable?

You repeatedly react strongly to things nobody said. You invent
strawman arguments.

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Medtronic
void Void(void) { Void(); } /* The recursive call of the void */

Re: Effect of CPP tags

<unvaac$55ag$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=30894&group=comp.lang.c#30894

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (bart)
Newsgroups: comp.lang.c
Subject: Re: Effect of CPP tags
Date: Sun, 14 Jan 2024 00:36:28 +0000
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <unvaac$55ag$1@dont-email.me>
References: <umet9d$3hir9$1@dont-email.me> <20240110182957.444@kylheku.com>
<unokb1$2vmkh$1@dont-email.me> <20240111081109.274@kylheku.com>
<unpd89$33jlu$1@dont-email.me> <20240111133742.530@kylheku.com>
<unpt44$35qn1$1@dont-email.me> <unrfgs$3fo6l$1@dont-email.me>
<unrocu$3h2ah$1@dont-email.me> <unrpn1$3h8jl$1@dont-email.me>
<unrro8$3hj71$1@dont-email.me> <unruru$3i29g$1@dont-email.me>
<uns9c6$3jis4$1@dont-email.me> <20240112134536.695@kylheku.com>
<unskit$3l154$1@dont-email.me> <87zfxakqjd.fsf@nosuchdomain.example.com>
<unso1g$3lb69$2@dont-email.me> <20240112200241.728@kylheku.com>
<untu7e$3u3nv$1@dont-email.me> <87o7dolxkj.fsf@nosuchdomain.example.com>
<unv3ec$48rm$1@dont-email.me> <87jzoclss6.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 14 Jan 2024 00:36:28 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c249a6589270dbc2ece95af7cb8b9409";
logging-data="169296"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1865zGmj2UIqkWWpZKEKinfEnbhyw5kdbI="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:kROlYUDuML/gMKaN4yHbm+dtP4k=
Content-Language: en-GB
In-Reply-To: <87jzoclss6.fsf@nosuchdomain.example.com>
 by: bart - Sun, 14 Jan 2024 00:36 UTC

On 13/01/2024 23:26, Keith Thompson wrote:
> bart <bc@freeuk.com> writes:
>> On 13/01/2024 21:42, Keith Thompson wrote:
>>> bart <bc@freeuk.com> writes:
>>>> On 13/01/2024 04:17, Kaz Kylheku wrote:
>>>>> On 2024-01-13, bart <bc@freeuk.com> wrote:
>>> [...]
>>>>>> That's a reasonable thing to do. But how does make do it? Can't a
>>>>>> compiler apply the same approach if N files have been submitted?
>>>>> Yes. And in fact, languages with good module support like Modula-2
>>>>> don't need external make utilities.
>>>>
>>>> Finally somebody admitting that some languages may not need make as much.
>>> Bart, seriously, what the hell are you talking about?
>>> It's true that some languages don't need "make" as much as C does.
>>> Nobody here has said otherwise, likely because other languages are
>>> largely off-topic here in comp.lang.c.
>>
>> Except 'make'? I get the impression that most programs written in C
>> have a large component written in 'make' too. A component you can't
>> always ignore since essential build info is encoded in it.
>
> Most? I don't know. Many? Sure.
>
> You wrote, "Finally somebody admitting that some languages may not need
> make as much.". Has anyone here claimed otherwise? If not, why do you
> find Kaz's statement so remarkable?

People have suggested using make for everything, from hello.c up to JP's
and SL's massive applications.

They have suggested using it for any language and even stuff which is
program code.

I've certainly seen makefiles associated with most open source apps I've
looked up.

So, yes, it was refreshing that someone admitted that a language didn't
need it. (I've tried saying so about mine, but people either don't
believe me, ignore it, or dismiss it.)

Re: Effect of CPP tags

<unvcgi$5emq$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=30895&group=comp.lang.c#30895

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.furie.org.uk!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (bart)
Newsgroups: comp.lang.c
Subject: Re: Effect of CPP tags
Date: Sun, 14 Jan 2024 01:13:53 +0000
Organization: A noiseless patient Spider
Lines: 62
Message-ID: <unvcgi$5emq$1@dont-email.me>
References: <umet9d$3hir9$1@dont-email.me>
<8734v6p5s1.fsf@nosuchdomain.example.com> <unke3h$25ia0$1@dont-email.me>
<unkhql$25uof$1@dont-email.me> <unkkp3$26g9o$1@dont-email.me>
<87ttnmnjdb.fsf@nosuchdomain.example.com> <unkp1b$270v8$1@dont-email.me>
<ZSmnN.151217$c3Ea.70659@fx10.iad> <unkuhp$27i0v$2@dont-email.me>
<unlqqa$2eqts$2@dont-email.me> <U7ynN.143065$Wp_8.30410@fx17.iad>
<unmmnd$2jair$1@dont-email.me> <87edepnich.fsf@nosuchdomain.example.com>
<unmqsg$2jvva$1@dont-email.me> <unmu6b$2kh81$1@dont-email.me>
<20240110133135.834@kylheku.com> <unn65q$2lr2i$1@dont-email.me>
<20240110182957.444@kylheku.com> <unokb1$2vmkh$1@dont-email.me>
<20240111081109.274@kylheku.com> <unpd89$33jlu$1@dont-email.me>
<20240111133742.530@kylheku.com> <unpt44$35qn1$1@dont-email.me>
<unrfgs$3fo6l$1@dont-email.me> <unrocu$3h2ah$1@dont-email.me>
<unrpn1$3h8jl$1@dont-email.me> <unrro8$3hj71$1@dont-email.me>
<unruru$3i29g$1@dont-email.me> <uns9c6$3jis4$1@dont-email.me>
<unt8iv$3r6p1$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 14 Jan 2024 01:13:54 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c249a6589270dbc2ece95af7cb8b9409";
logging-data="178906"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19cvVeNu5LDiIQFxnPZv6gH4nvPmfpHo5M="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Azj2cZ36WyIyF9KT4oba3hNN/NY=
Content-Language: en-GB
In-Reply-To: <unt8iv$3r6p1$1@dont-email.me>
 by: bart - Sun, 14 Jan 2024 01:13 UTC

On 13/01/2024 05:54, Janis Papanagnou wrote:

> It's very interesting that despite your very small and restricted
> experience

I don't agree. My experience has spanned mainframes, minicomputers and
generations of microprocessors.

I designed and built 8-bit and 16-bit machines and video boards from
components. I've programmed them from nothing, even bootstrapping my
first HLL starting from binary machine code, via hex and assembly
through to a compiler.

Throughout the 80s I wrote endless drivers, graphics libraries, GUI
libs, FP emulation, maths libs, took care of fonts, invented image file
formats, and started writing GUI applications and scripting languages.

Not one line was written in any other language.

I believe it was quite remarkable to make money from commercial projects
using a complete 'full stack' toolset written 100% by me and in 100% my
languages.

> you'd decide to follow the "not invented here" principle
> instead of using long established, refined, and well accepted tools
> that are already available (and even for free), and reliably work.

It wasn't really a choice at first. C compilers for microprocessors c.
1982 were hopelessly slow, and that's if it they could somehow be got
into our machines since every 8-bit computer used a different disk format.

They were also expensive, and I wasn't even a programmer so no one was
going to pay for it.

Besides, I'd looked in The C Programming Language, and thought it was
dreadful. I perservered with my own language which compiled in a second
or two rather than minutes.

I've never looked back.

It's no secret here that I don't like C, but I sometimes need to use
some libraries which come as C source. But for those (the ones where I
can crack the makefile encryption!), I have my private C compiler to
generate binaries. Isn't that something?

Sometimes you need to go against the flow. Some innovative products have
come about from people deciding to do their own thing. Mine however are
personal tools.

I already know you're going to reply to this, if at all, with a big
<SNIP> and a comment 'Nobody Cares'.

Jealous any? I wouldn't swap places with you or your apps that can take
hours to build. IMV somebody is doing something wrong.

(This is my current 2024 set of language tools:

https://github.com/sal55/langs/blob/master/CompilerSuite.md

There is no 'make'. It is utterly pointless here.)

Re: Effect of CPP tags

<uo0je6$e8fv$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=30896&group=comp.lang.c#30896

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (bart)
Newsgroups: comp.lang.c
Subject: Re: Effect of CPP tags
Date: Sun, 14 Jan 2024 12:18:14 +0000
Organization: A noiseless patient Spider
Lines: 59
Message-ID: <uo0je6$e8fv$1@dont-email.me>
References: <umet9d$3hir9$1@dont-email.me> <unjmqs$21nsj$1@dont-email.me>
<unk0q8$23dum$1@dont-email.me> <unk4tm$2408t$1@dont-email.me>
<unkblm$2566s$1@dont-email.me> <8734v6p5s1.fsf@nosuchdomain.example.com>
<unke3h$25ia0$1@dont-email.me> <unkhql$25uof$1@dont-email.me>
<unkkp3$26g9o$1@dont-email.me> <87ttnmnjdb.fsf@nosuchdomain.example.com>
<unkp1b$270v8$1@dont-email.me> <ZSmnN.151217$c3Ea.70659@fx10.iad>
<unkuhp$27i0v$2@dont-email.me> <unlqqa$2eqts$2@dont-email.me>
<U7ynN.143065$Wp_8.30410@fx17.iad> <unmmnd$2jair$1@dont-email.me>
<87edepnich.fsf@nosuchdomain.example.com> <unmqsg$2jvva$1@dont-email.me>
<unmu6b$2kh81$1@dont-email.me> <20240110133135.834@kylheku.com>
<unn65q$2lr2i$1@dont-email.me> <20240110182957.444@kylheku.com>
<unokb1$2vmkh$1@dont-email.me> <20240111081109.274@kylheku.com>
<unpd89$33jlu$1@dont-email.me> <20240111133742.530@kylheku.com>
<unpt44$35qn1$1@dont-email.me> <unrfgs$3fo6l$1@dont-email.me>
<unrocu$3h2ah$1@dont-email.me> <20240112132216.285@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 14 Jan 2024 12:18:14 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c249a6589270dbc2ece95af7cb8b9409";
logging-data="467455"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ggTFj8VkFnOB4TXHDrc3ZYYiQaf2FZ6c="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:oC/BFD1MbhcG2sqr8Yz8nusuBSE=
Content-Language: en-GB
In-Reply-To: <20240112132216.285@kylheku.com>
 by: bart - Sun, 14 Jan 2024 12:18 UTC

On 12/01/2024 21:31, Kaz Kylheku wrote:
> On 2024-01-12, bart <bc@freeuk.com> wrote:

>> I mainly remember the times when they do hang.
>
> DOS/Windows stuff hangs also:
>
> C:\Users\kazk>findstr foo
> ... "hang" ...
>
> Even Microsoft clued in to the idea that a text filter shouldn't
> spew extraneous diagnostics by default.

If you type 'findstr' with no arguments, it reports an error. Maybe
'sort' was a better example to make your point.

>> But with 'as', it just sits there. I wonder what it's waiting for; for
>> me to type in ASM code live from the terminal? (If 'as' is designed for
>> piped-in input, tdm/gcc doesn't appear to use that feature as I remember
>> it generating discrete, temporary .s files.)
>
> gcc -pipe works in pipe mode.
>
> The "as" command is intended for compiler use; not only is it not
> an interactive assembler, it doesn't even have particularly good
> diagnostics for batch use. You have to know what you're doing.

You're sort of making excuses for it. My 'aa' assembler was also
designed mainly for machine-generated code, so it has very few frills.

The syntax however is decent enough that I can use it for my inline
assembler too.

The way it works is also conventional: it takes .asm files as input and
produces a file as output. It doesn't call every output 'a.out'!

But that CLI is part of the lead module.

By leaving that out, the remaining modules can statically compiled
(embedded) into another application. That can invoke the assembler via
this function:

export func assembler(
ichar outputfile,
ref[]ichar asmfiles, dllfiles,
int nasmfiles, ndllfiles, fobj, fdll, fcaption,
ref[]ichar assemsources = nil,
ichar entrypointname)int =

which takes 10 arguments. I'd sort of wondered how some of that info is
imparted to 'as' when the only input is a single string.

(This manages N asm inputs and L libraries. Sources can come from files,
or from in-memory strings, to avoid having to write out ASM files.
Output will be a single EXE, DLL or OBJ file.)

aa.exe is about 0.1MB; as.exe is 1.5MB.

Re: Effect of CPP tags

<uo0rav$fauj$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=30897&group=comp.lang.c#30897

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (bart)
Newsgroups: comp.lang.c
Subject: Re: Effect of CPP tags
Date: Sun, 14 Jan 2024 14:33:04 +0000
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <uo0rav$fauj$1@dont-email.me>
References: <umet9d$3hir9$1@dont-email.me> <20240110133135.834@kylheku.com>
<unn65q$2lr2i$1@dont-email.me> <20240110182957.444@kylheku.com>
<unokb1$2vmkh$1@dont-email.me> <20240111081109.274@kylheku.com>
<unpd89$33jlu$1@dont-email.me> <20240111133742.530@kylheku.com>
<unpt44$35qn1$1@dont-email.me> <unrfgs$3fo6l$1@dont-email.me>
<unrocu$3h2ah$1@dont-email.me> <unrpn1$3h8jl$1@dont-email.me>
<unrro8$3hj71$1@dont-email.me> <unruru$3i29g$1@dont-email.me>
<uns9c6$3jis4$1@dont-email.me> <20240112134536.695@kylheku.com>
<unskit$3l154$1@dont-email.me> <87zfxakqjd.fsf@nosuchdomain.example.com>
<unso1g$3lb69$2@dont-email.me> <20240112200241.728@kylheku.com>
<untu7e$3u3nv$1@dont-email.me> <87o7dolxkj.fsf@nosuchdomain.example.com>
<unv3ec$48rm$1@dont-email.me> <unv4r1$2va$1@news.gegeweb.eu>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 14 Jan 2024 14:33:03 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c249a6589270dbc2ece95af7cb8b9409";
logging-data="502739"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19emuNcfD8uVAPuVxXzn9FV3sqe3YY+eRQ="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:taHXMoZ6ikfhiG+8J6+duYjiTi4=
In-Reply-To: <unv4r1$2va$1@news.gegeweb.eu>
Content-Language: en-GB
 by: bart - Sun, 14 Jan 2024 14:33 UTC

On 13/01/2024 23:02, tTh wrote:
> On 1/13/24 23:39, bart wrote:
>
>> It would be ironic that, if I was to write an application in C, it
>> would be 100% C with no other language involved. Not even any compiler
>> options (not with my compiler anyway).
>
>    Is your application can be compiled on Linux, OpenBSD, Solaris,
>    HP-UX, FreeBSD, AIX, MacOSX and a few others commonly used
>    operating system ?

I'm not suggesting that it will be 100% portable, just that it will
involve no tools other than a C compiler.

But if it is C code, and is either a pure library, or only does console
or file i/o, then why not?

Re: Effect of CPP tags

<9RToN.289036$p%Mb.21233@fx15.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=30898&group=comp.lang.c#30898

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!tncsrv06.tnetconsulting.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx15.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: Effect of CPP tags
Newsgroups: comp.lang.c
References: <umet9d$3hir9$1@dont-email.me> <unrro8$3hj71$1@dont-email.me> <unruru$3i29g$1@dont-email.me> <uns9c6$3jis4$1@dont-email.me> <20240112134536.695@kylheku.com> <unskit$3l154$1@dont-email.me> <87zfxakqjd.fsf@nosuchdomain.example.com> <unso1g$3lb69$2@dont-email.me> <20240112200241.728@kylheku.com> <untu7e$3u3nv$1@dont-email.me> <87o7dolxkj.fsf@nosuchdomain.example.com> <unv3ec$48rm$1@dont-email.me> <87jzoclss6.fsf@nosuchdomain.example.com> <unvaac$55ag$1@dont-email.me>
Lines: 44
Message-ID: <9RToN.289036$p%Mb.21233@fx15.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Sun, 14 Jan 2024 16:20:21 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Sun, 14 Jan 2024 16:20:21 GMT
X-Received-Bytes: 2879
 by: Scott Lurndal - Sun, 14 Jan 2024 16:20 UTC

bart <bc@freeuk.com> writes:
>On 13/01/2024 23:26, Keith Thompson wrote:
>> bart <bc@freeuk.com> writes:
>>> On 13/01/2024 21:42, Keith Thompson wrote:
>>>> bart <bc@freeuk.com> writes:
>>>>> On 13/01/2024 04:17, Kaz Kylheku wrote:
>>>>>> On 2024-01-13, bart <bc@freeuk.com> wrote:
>>>> [...]
>>>>>>> That's a reasonable thing to do. But how does make do it? Can't a
>>>>>>> compiler apply the same approach if N files have been submitted?
>>>>>> Yes. And in fact, languages with good module support like Modula-2
>>>>>> don't need external make utilities.
>>>>>
>>>>> Finally somebody admitting that some languages may not need make as much.
>>>> Bart, seriously, what the hell are you talking about?
>>>> It's true that some languages don't need "make" as much as C does.
>>>> Nobody here has said otherwise, likely because other languages are
>>>> largely off-topic here in comp.lang.c.
>>>
>>> Except 'make'? I get the impression that most programs written in C
>>> have a large component written in 'make' too. A component you can't
>>> always ignore since essential build info is encoded in it.
>>
>> Most? I don't know. Many? Sure.
>>
>> You wrote, "Finally somebody admitting that some languages may not need
>> make as much.". Has anyone here claimed otherwise? If not, why do you
>> find Kaz's statement so remarkable?
>
>People have suggested using make for everything, from hello.c up to JP's
>and SL's massive applications.

You are again ascribing words to people. People have pointed out
to you that make can be used for a number of purposes.

They've not suggested that you -use- make yourself.

>
>They have suggested using it for any language and even stuff which is
>program code.

No, they've _stated_ that it can be used for any language or stuff
which is _not_ program code. That's just a plain and simple fact.

Re: Effect of CPP tags

<861qajn866.fsf@linuxsc.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=30899&group=comp.lang.c#30899

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tr.17...@z991.linuxsc.com (Tim Rentsch)
Newsgroups: comp.lang.c
Subject: Re: Effect of CPP tags
Date: Sun, 14 Jan 2024 09:20:33 -0800
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <861qajn866.fsf@linuxsc.com>
References: <umet9d$3hir9$1@dont-email.me> <unk4tm$2408t$1@dont-email.me> <unkblm$2566s$1@dont-email.me> <8734v6p5s1.fsf@nosuchdomain.example.com> <unke3h$25ia0$1@dont-email.me> <unkhql$25uof$1@dont-email.me> <unkkp3$26g9o$1@dont-email.me> <87ttnmnjdb.fsf@nosuchdomain.example.com> <unkp1b$270v8$1@dont-email.me> <ZSmnN.151217$c3Ea.70659@fx10.iad> <unkuhp$27i0v$2@dont-email.me> <unlqqa$2eqts$2@dont-email.me> <U7ynN.143065$Wp_8.30410@fx17.iad> <unmmnd$2jair$1@dont-email.me> <87edepnich.fsf@nosuchdomain.example.com> <unmqsg$2jvva$1@dont-email.me> <unmu6b$2kh81$1@dont-email.me> <20240110133135.834@kylheku.com> <unn65q$2lr2i$1@dont-email.me> <20240110182957.444@kylheku.com> <unokb1$2vmkh$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: dont-email.me; posting-host="8638bc13aeaeb22b15b54cee031022ba";
logging-data="565515"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+kzfQ2gZVwrHxDATXt2MUZFVvCXvWLHpU="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:mWQcnbJG7Q8rud3uEdVZbETBoqw=
sha1:UFybbPaFWELDyGVjByMWuaxG3FE=
 by: Tim Rentsch - Sun, 14 Jan 2024 17:20 UTC

bart <bc@freeuk.com> writes:

[...]

> While 'make' conflates several kinds of processes: [...]

make doesn't conflate these different applications, any
more than 'cat' "conflates" different kinds of files.
They simply are general tools with a broad range of
applicability. The idea that the applications listed
are in some way inherently different shows only the
limitations of your thinking, not any essential truth
about make.

Re: Effect of CPP tags

<86wmsbltiw.fsf@linuxsc.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=30900&group=comp.lang.c#30900

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tr.17...@z991.linuxsc.com (Tim Rentsch)
Newsgroups: comp.lang.c
Subject: Re: Effect of CPP tags
Date: Sun, 14 Jan 2024 09:22:15 -0800
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <86wmsbltiw.fsf@linuxsc.com>
References: <umet9d$3hir9$1@dont-email.me> <unmqsg$2jvva$1@dont-email.me> <unmu6b$2kh81$1@dont-email.me> <20240110133135.834@kylheku.com> <unn65q$2lr2i$1@dont-email.me> <20240110182957.444@kylheku.com> <unokb1$2vmkh$1@dont-email.me> <20240111081109.274@kylheku.com> <unpd89$33jlu$1@dont-email.me> <20240111133742.530@kylheku.com> <unpt44$35qn1$1@dont-email.me> <unrfgs$3fo6l$1@dont-email.me> <unrocu$3h2ah$1@dont-email.me> <65eoN.26119$9cLc.94@fx02.iad> <unrum2$3i13c$1@dont-email.me> <_cgoN.55370$TSTa.20120@fx47.iad> <uns6ji$3j39k$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: dont-email.me; posting-host="8638bc13aeaeb22b15b54cee031022ba";
logging-data="565515"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19l/F7qz5ebZ2FKifN6xUFa1+KC0DYxW60="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:7XdRFUZcxiG/CJA78r6iHXMb4Cg=
sha1:GFab6x5tBPYh52zXpa0odD2iU3A=
 by: Tim Rentsch - Sun, 14 Jan 2024 17:22 UTC

bart <bc@freeuk.com> writes:

> On 12/01/2024 19:15, Scott Lurndal wrote:
[...]
>> What the FM documents. RTFM.
>
> I see. So forget just having intuitive behaviour. [...]

The problem is not what the behavior is. The problem is
with your intuition about what the behavior should be.

Re: Effect of CPP tags

<86sf2zltcd.fsf@linuxsc.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=30901&group=comp.lang.c#30901

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.swapon.de!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tr.17...@z991.linuxsc.com (Tim Rentsch)
Newsgroups: comp.lang.c
Subject: Re: Effect of CPP tags
Date: Sun, 14 Jan 2024 09:26:10 -0800
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <86sf2zltcd.fsf@linuxsc.com>
References: <umet9d$3hir9$1@dont-email.me> <unegb1$148mk$2@dont-email.me> <ungr21$1hleq$1@dont-email.me> <unh5p4$1j81h$1@dont-email.me> <unhjme$1ld24$1@dont-email.me> <uni64g$1nrsb$1@dont-email.me> <unislv$1u3j0$1@dont-email.me> <unj9l0$1vr6j$1@dont-email.me> <unjmqs$21nsj$1@dont-email.me> <unk0q8$23dum$1@dont-email.me> <unk4tm$2408t$1@dont-email.me> <unkblm$2566s$1@dont-email.me> <8734v6p5s1.fsf@nosuchdomain.example.com> <unke3h$25ia0$1@dont-email.me> <unkhql$25uof$1@dont-email.me> <unkkp3$26g9o$1@dont-email.me> <87ttnmnjdb.fsf@nosuchdomain.example.com> <unkp1b$270v8$1@dont-email.me> <87plyanhb8.fsf@nosuchdomain.example.com> <unktv9$27i0v$1@dont-email.me> <87il41op0o.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: dont-email.me; posting-host="8638bc13aeaeb22b15b54cee031022ba";
logging-data="565515"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Wi4wavgC1bgeskDkC/9Hki8nwzNw50s8="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:8XueP8L+7DI+pxCwt/yWjhYUfgI=
sha1:z8SKB9cgCWdAZaXqeyp5Lsw/t0w=
 by: Tim Rentsch - Sun, 14 Jan 2024 17:26 UTC

Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:

> Bart <bc@freeuk.cm> writes:
[...]

> I've told you (multiple times, for *years*) how to invoke gcc in
> ISO C conforming mode *if that's what you want*.

By my reckoning, for more than five years. Do you think it might
be time to give up on the idea that he will ever hear you?

Re: Effect of CPP tags

<86h6jfls0e.fsf@linuxsc.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=30903&group=comp.lang.c#30903

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tr.17...@z991.linuxsc.com (Tim Rentsch)
Newsgroups: comp.lang.c
Subject: Re: Effect of CPP tags
Date: Sun, 14 Jan 2024 09:54:57 -0800
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <86h6jfls0e.fsf@linuxsc.com>
References: <umet9d$3hir9$1@dont-email.me> <unokb1$2vmkh$1@dont-email.me> <20240111081109.274@kylheku.com> <unpd89$33jlu$1@dont-email.me> <20240111133742.530@kylheku.com> <unpt44$35qn1$1@dont-email.me> <unrfgs$3fo6l$1@dont-email.me> <unrocu$3h2ah$1@dont-email.me> <unrpn1$3h8jl$1@dont-email.me> <unrro8$3hj71$1@dont-email.me> <unruru$3i29g$1@dont-email.me> <uns9c6$3jis4$1@dont-email.me> <20240112134536.695@kylheku.com> <unskit$3l154$1@dont-email.me> <87zfxakqjd.fsf@nosuchdomain.example.com> <unso1g$3lb69$2@dont-email.me> <20240112200241.728@kylheku.com> <untu7e$3u3nv$1@dont-email.me> <87o7dolxkj.fsf@nosuchdomain.example.com> <unv3ec$48rm$1@dont-email.me> <87jzoclss6.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: dont-email.me; posting-host="8638bc13aeaeb22b15b54cee031022ba";
logging-data="578921"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ZPXGoCOpENuW6lRpSoKF6OxlmSStik7M="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:SVB4vvX6dBoLuJVid2xByPcIssQ=
sha1:v720EKC8lPMUnf9BZTWwBQasrjQ=
 by: Tim Rentsch - Sun, 14 Jan 2024 17:54 UTC

Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:

> bart <bc@freeuk.com> writes:
[...]

> You repeatedly react strongly to things nobody said. You invent
> strawman arguments.

That's what bart does. He continually misrepresents other
people's statements, to make them look stupid, so he can feel
superior. Only insecure people feel a need to perpetually brag
and to constantly run down everyone else's point of view. Given
that he's been doing this for the better part of a decade it's
unlikely he is going to change any time soon.

Re: Effect of CPP tags

<uo1835$ht87$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=30904&group=comp.lang.c#30904

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (bart)
Newsgroups: comp.lang.c
Subject: Re: Effect of CPP tags
Date: Sun, 14 Jan 2024 18:10:45 +0000
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <uo1835$ht87$1@dont-email.me>
References: <umet9d$3hir9$1@dont-email.me> <unmqsg$2jvva$1@dont-email.me>
<unmu6b$2kh81$1@dont-email.me> <20240110133135.834@kylheku.com>
<unn65q$2lr2i$1@dont-email.me> <20240110182957.444@kylheku.com>
<unokb1$2vmkh$1@dont-email.me> <20240111081109.274@kylheku.com>
<unpd89$33jlu$1@dont-email.me> <20240111133742.530@kylheku.com>
<unpt44$35qn1$1@dont-email.me> <unrfgs$3fo6l$1@dont-email.me>
<unrocu$3h2ah$1@dont-email.me> <65eoN.26119$9cLc.94@fx02.iad>
<unrum2$3i13c$1@dont-email.me> <_cgoN.55370$TSTa.20120@fx47.iad>
<uns6ji$3j39k$1@dont-email.me> <86wmsbltiw.fsf@linuxsc.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 14 Jan 2024 18:10:46 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c249a6589270dbc2ece95af7cb8b9409";
logging-data="587015"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/gtBAMUrUVYKdyPgkLVAlPP2ZhCuF4ERY="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:+PXO5ra6eoy+1esPj7fMRXT1wtk=
Content-Language: en-GB
In-Reply-To: <86wmsbltiw.fsf@linuxsc.com>
 by: bart - Sun, 14 Jan 2024 18:10 UTC

On 14/01/2024 17:22, Tim Rentsch wrote:
> bart <bc@freeuk.com> writes:
>
>> On 12/01/2024 19:15, Scott Lurndal wrote:
> [...]
>>> What the FM documents. RTFM.
>>
>> I see. So forget just having intuitive behaviour. [...]
>
> The problem is not what the behavior is. The problem is
> with your intuition about what the behavior should be.

I would love to know what behaviour of an assembler is intuitive to /you/.

Or anybody.

I would be surprised if that involved the brain-dead behaviour of either
naming every output 'a.out', so overwriting the file created 5 seconds
previously, or spewing reams of binary code to a text terminal sensitive
to escape codes.

I don't know how many assemblers you're written; I've done four or five
standalone ones. All took files as input, and wrote correspondingly
named files as output.

(Except my first one, but that machine didn't a file system, so it can
be excused.)

The behaviour of 'as' is quite extraordinary. But it is typical of the
regulars here to gang up on somebody who points out the bleeding
obvious, and pretend that /they/ are mistaken, and that 'as' works
perfectly.

(Maybe you should apply to work for The Post Office and Fujitsu in the UK!)

How about accepting some constructive criticism for a change, and
ADMITTING that the behaviour is rubbish, but it has to be accepted
because the way it works is hard-coded into too many tools to change it.

Having a product called 'as2' is totally out of the question of course!


devel / comp.lang.c / Effect of CPP tags

Pages:123456789101112131415161718192021222324252627
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor