Re: 80286 protected mode

Liste des GroupesRevenir à c arch 
Sujet : Re: 80286 protected mode
De : david.brown (at) *nospam* hesbynett.no (David Brown)
Groupes : comp.arch
Date : 17. Oct 2024, 15:25:01
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <ver6nt$2pcju$3@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0
On 17/10/2024 05:32, George Neuner wrote:
On Wed, 16 Oct 2024 09:38:20 +0200, David Brown
<david.brown@hesbynett.no> wrote:
 
It's a very good philosophy in programming language design that the core
language should only contain what it has to contain - if a desired
feature can be put in a library and be equally efficient and convenient
to use, then it should be in the standard library, not the core
language.  It is much easier to develop, implement, enhance, adapt, and
otherwise change things in libraries than the core language.
>
And it is also fine, IMHO, that some things in the standard library need
non-standard C - the standard library is part of the implementation.
 But it is a problem if the library has to be written using a different
compiler.  [For this purpose I would consider specifying different
compiler flags to be using a different compiler.]
Specifying different flags would technically give you a different /implementation/, but it would not normally be considered a different /compiler/.  I see no problem at all if libraries (standard library or otherwise) are compiled with different flags.  I can absolutely guarantee that the flags I use for compiling my application code are not the same as those used for compiling the static libraries that came with my toolchains.  Using different /compilers/ could be a significant inconvenience, and might mean you lose additional features (such as link-time optimisation), but as long as the ABI is consistent then they should work fine.

 Why?  Because once these things are discovered, many programmers will
see their advantages and lack the discipline to avoid using them for
more general application work.
 
Really?  Have you ever looked at the source code for a library such as glibc or newlib?  Most developers would look at that and quickly shy away from all the macros, additional compiler-specific attributes, conditional compilation, and the rest of it.  Very, very few would look into the details to see if there are any "tricks" or "secret" compiler extensions they can copy.  And with very few exceptions, all the compiler-specific features will already be documented and available to programmers enthusiastic enough to RTFM.

 
In an ideal world, it would be better if we could define `malloc` and
`memmove` efficiently in standard C, but at least they can be
implemented in non-standard C.
>
malloc() used to be std. K&R C--what dropped if from the std ??
>
The function has always been available in C since the language was
standardised, and AFAIK it was in K&R C.  But no one (in authority) ever
claimed it could be implemented purely in standard C.  What do you think
has changed?
>

Date Sujet#  Auteur
3 Oct 24 * Re: Byte ordering (was: Whether something is RISC or not)369Lawrence D'Oliveiro
4 Oct 24 +- Re: Byte ordering1Lynn Wheeler
4 Oct 24 +* Re: Byte ordering (was: Whether something is RISC or not)365David Brown
4 Oct 24 i`* Re: Byte ordering (was: Whether something is RISC or not)364Anton Ertl
4 Oct 24 i +* Re: Byte ordering5BGB
5 Oct 24 i i`* Re: Byte ordering4MitchAlsup1
5 Oct 24 i i +* Re: Byte ordering2BGB
5 Oct 24 i i i`- Re: Byte ordering1Lawrence D'Oliveiro
5 Oct 24 i i `- Re: Byte ordering1Lawrence D'Oliveiro
5 Oct 24 i +* Re: Byte ordering (was: Whether something is RISC or not)13Lawrence D'Oliveiro
5 Oct 24 i i`* Re: Byte ordering (was: Whether something is RISC or not)12Brett
5 Oct 24 i i `* Re: Byte ordering (was: Whether something is RISC or not)11Anton Ertl
5 Oct 24 i i  `* Re: Byte ordering (was: Whether something is RISC or not)10Michael S
6 Oct 24 i i   +- Re: Byte ordering1Terje Mathisen
6 Oct 24 i i   `* Re: Byte ordering (was: Whether something is RISC or not)8Brett
7 Oct 24 i i    `* Re: Byte ordering (was: Whether something is RISC or not)7Lawrence D'Oliveiro
7 Oct 24 i i     `* Re: Byte ordering (was: Whether something is RISC or not)6Brett
7 Oct 24 i i      `* Re: Byte ordering (was: Whether something is RISC or not)5Michael S
7 Oct 24 i i       +* Re: Byte ordering2Stefan Monnier
7 Oct 24 i i       i`- Re: Byte ordering1Michael S
7 Oct 24 i i       `* Re: Byte ordering (was: Whether something is RISC or not)2Lawrence D'Oliveiro
8 Oct 24 i i        `- Re: Byte ordering1Terje Mathisen
6 Oct 24 i `* Re: Byte ordering345David Brown
6 Oct 24 i  `* Re: Byte ordering344Anton Ertl
6 Oct 24 i   +* Re: Byte ordering189John Dallman
7 Oct 24 i   i+* Re: Byte ordering20Lawrence D'Oliveiro
8 Oct 24 i   ii`* Re: Byte ordering19John Dallman
9 Oct 24 i   ii +- VMS/NT memory management (was: Byte ordering)1Stefan Monnier
15 Oct 24 i   ii +* Re: Byte ordering2Lawrence D'Oliveiro
15 Oct 24 i   ii i`- Re: Byte ordering1MitchAlsup1
15 Oct 24 i   ii `* Re: Byte ordering15Lawrence D'Oliveiro
15 Oct 24 i   ii  +* Re: Byte ordering3Michael S
15 Oct 24 i   ii  i+- Re: Byte ordering1John Dallman
18 Oct 24 i   ii  i`- Re: Byte ordering1Lawrence D'Oliveiro
15 Oct 24 i   ii  +* Re: Byte ordering9John Dallman
16 Oct 24 i   ii  i+* Re: Byte ordering7George Neuner
16 Oct 24 i   ii  ii`* Re: Byte ordering6Terje Mathisen
16 Oct 24 i   ii  ii `* Re: Byte ordering5David Brown
17 Oct 24 i   ii  ii  +* Re: Byte ordering2George Neuner
17 Oct 24 i   ii  ii  i`- Re: Byte ordering1David Brown
17 Oct 24 i   ii  ii  `* Re: clouds, not Byte ordering2John Levine
17 Oct 24 i   ii  ii   `- Re: clouds, not Byte ordering1David Brown
18 Oct 24 i   ii  i`- Re: Byte ordering1Lawrence D'Oliveiro
16 Oct 24 i   ii  `* Re: Byte ordering2Paul A. Clayton
18 Oct 24 i   ii   `- Re: Microkernels & Capabilities (was Re: Byte ordering)1Lawrence D'Oliveiro
7 Oct 24 i   i`* 80286 protected mode168Anton Ertl
7 Oct 24 i   i +* Re: 80286 protected mode5Lars Poulsen
7 Oct 24 i   i i`* Re: 80286 protected mode4Terje Mathisen
7 Oct 24 i   i i +- Re: 80286 protected mode1Michael S
7 Oct 24 i   i i `* Re: 80286 protected mode2Lawrence D'Oliveiro
8 Oct 24 i   i i  `- Re: 80286 protected mode1Terje Mathisen
7 Oct 24 i   i +* Re: 80286 protected mode3Brett
7 Oct 24 i   i i`* Re: 80286 protected mode2Michael S
7 Oct 24 i   i i `- Re: 80286 protected mode1Brett
7 Oct 24 i   i +- Re: 80286 protected mode1Lawrence D'Oliveiro
8 Oct 24 i   i +* Re: 80286 protected mode152MitchAlsup1
8 Oct 24 i   i i+* Re: 80286 protected mode4Lawrence D'Oliveiro
8 Oct 24 i   i ii`* Re: 80286 protected mode3MitchAlsup1
9 Oct 24 i   i ii +- Re: 80286 protected mode1David Brown
15 Oct 24 i   i ii `- Re: 80286 protected mode1Lawrence D'Oliveiro
8 Oct 24 i   i i`* Re: 80286 protected mode147Anton Ertl
8 Oct 24 i   i i +- Re: 80286 protected mode1Robert Finch
9 Oct 24 i   i i `* Re: 80286 protected mode145David Brown
9 Oct 24 i   i i  +* Re: 80286 protected mode79MitchAlsup1
9 Oct 24 i   i i  i`* Re: 80286 protected mode78David Brown
9 Oct 24 i   i i  i `* Re: 80286 protected mode77Stephen Fuld
10 Oct 24 i   i i  i  +* Re: 80286 protected mode2MitchAlsup1
10 Oct 24 i   i i  i  i`- Re: 80286 protected mode1David Brown
10 Oct 24 i   i i  i  +- Re: 80286 protected mode1David Brown
11 Oct 24 i   i i  i  `* Re: 80286 protected mode73Tim Rentsch
15 Oct 24 i   i i  i   `* Re: 80286 protected mode72Stefan Monnier
15 Oct 24 i   i i  i    +* Re: 80286 protected mode30MitchAlsup1
16 Oct 24 i   i i  i    i+* Re: 80286 protected mode25MitchAlsup1
16 Oct 24 i   i i  i    ii+* Re: C and turtles, 80286 protected mode13John Levine
16 Oct 24 i   i i  i    iii+* Re: C and turtles, 80286 protected mode7MitchAlsup1
16 Oct 24 i   i i  i    iiii`* Re: C and turtles, 80286 protected mode6John Levine
17 Oct 24 i   i i  i    iiii `* Re: C and turtles, 80286 protected mode5Thomas Koenig
20 Oct 24 i   i i  i    iiii  `* Re: C and turtles, 80286 protected mode4Lawrence D'Oliveiro
20 Oct 24 i   i i  i    iiii   `* Re: C and turtles, 80286 protected mode3George Neuner
22 Oct 24 i   i i  i    iiii    `* Re: C and turtles, 80286 protected mode2Tim Rentsch
22 Oct 24 i   i i  i    iiii     `- Re: C and turtles, 80286 protected mode1George Neuner
16 Oct 24 i   i i  i    iii+- Re: C and turtles, 80286 protected mode1David Brown
16 Oct 24 i   i i  i    iii`* Re: C and turtles, 80286 protected mode4Paul A. Clayton
17 Oct 24 i   i i  i    iii +- Re: C and turtles, 80286 protected mode1David Brown
20 Oct 24 i   i i  i    iii `* Re: C and turtles, 80286 protected mode2Lawrence D'Oliveiro
20 Oct 24 i   i i  i    iii  `- Re: C and turtles, 80286 protected mode1Paul A. Clayton
16 Oct 24 i   i i  i    ii+* Re: 80286 protected mode7Thomas Koenig
16 Oct 24 i   i i  i    iii+* Re: 80286 protected mode2MitchAlsup1
17 Oct 24 i   i i  i    iiii`- Re: 80286 protected mode1Tim Rentsch
17 Oct 24 i   i i  i    iii`* Re: 80286 protected mode4Tim Rentsch
17 Oct 24 i   i i  i    iii `* Re: fine points of dynamic memory allocation, not 80286 protected mode3John Levine
17 Oct 24 i   i i  i    iii  +- Re: fine points of dynamic memory allocation, not 80286 protected mode1John Levine
18 Oct 24 i   i i  i    iii  `- Re: fine points of dynamic memory allocation, not 80286 protected mode1Tim Rentsch
17 Oct 24 i   i i  i    ii+* Re: 80286 protected mode3George Neuner
17 Oct 24 i   i i  i    iii+- Re: 80286 protected mode1Tim Rentsch
17 Oct 24 i   i i  i    iii`- Re: 80286 protected mode1David Brown
17 Oct 24 i   i i  i    ii`- Re: 80286 protected mode1Tim Rentsch
16 Oct 24 i   i i  i    i+* Re: 80286 protected mode3David Brown
17 Oct 24 i   i i  i    ii`* Re: 80286 protected mode2George Neuner
17 Oct 24 i   i i  i    ii `- Re: 80286 protected mode1David Brown
17 Oct 24 i   i i  i    i`- Re: 80286 protected mode1Tim Rentsch
16 Oct 24 i   i i  i    `* Re: 80286 protected mode41David Brown
9 Oct 24 i   i i  +* Re: 80286 protected mode51Thomas Koenig
13 Oct 24 i   i i  `* Re: 80286 protected mode14Anton Ertl
8 Oct 24 i   i `* Re: 80286 protected mode6John Levine
3 Jan 25 i   `* Re: Byte ordering154Waldek Hebisch
6 Oct 24 `* Re: Byte ordering (was: Whether something is RISC or not)2Michael S

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal