Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Don't fear the pen. When in doubt, draw a pretty picture." -- Baker's Third Law of Design.


devel / comp.lang.c / musl libc C99 compliance

SubjectAuthor
* musl libc C99 complianceVisda Vokhshoori
+- Re: musl libc C99 complianceMark Bluemel
+- Re: musl libc C99 complianceKaz Kylheku
+- Re: musl libc C99 complianceAndrey Tarasevich
`- Re: musl libc C99 complianceMalcolm McLean

1
musl libc C99 compliance

<7c611178-3f45-4a36-9475-878e9b5ef91en@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
 by: Visda Vokhshoori - Thu, 26 Aug 2021 14:15 UTC

Hello, all,

on the https://www.musl-libc.org/faq.html says it requires a C99 compliant compiler with support for gcc style __asm__ statement.

is the the musl libc source C99 compliant?

Have a nice day.

Visda

Re: musl libc C99 compliance

<5dd13f03-1598-4870-8396-89865a122ba0n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
 by: Mark Bluemel - Thu, 26 Aug 2021 15:22 UTC

On Thursday, 26 August 2021 at 15:15:09 UTC+1, visda.vo...@gmail.com wrote:
> Hello, all,
>
> on the https://www.musl-libc.org/faq.html says it requires a C99 compliant compiler with support for gcc style __asm__ statement.
>
> is the the musl libc source C99 compliant?
>
> Have a nice day.

I doubt that the forum members are particularly well placed to comment on the compliance of a specific implementation of libc.

You'd do better engaging with musl's developers and user community.

I've had a quick look at their website and I'd suggest looking at the community Wiki - https://wiki.musl-libc.org/compatibility.html may be particularly relevant.

Beyond that, they appear to have a mailing list and an IRC channel. https://musl.libc.org/support.html

Re: musl libc C99 compliance

<20210826084615.807@kylheku.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
 by: Kaz Kylheku - Thu, 26 Aug 2021 15:50 UTC

On 2021-08-26, Visda Vokhshoori <visda.vokhshoori@gmail.com> wrote:
> Hello, all,
>
> on the https://www.musl-libc.org/faq.html says it requires a C99 compliant compiler with support for gcc style __asm__ statement.
>
> is the the musl libc source C99 compliant?

I suspect you are misinterpreting this.

Most users of Musl do not interact with the source. They are developers
who use the library.

The FAQ is almost certainly saying that to use the header files of Musl
in your program, you are expected to be compiling in the C99 dialect.

If your compiler is in some other dialect (like one with nonconforming
extensions) then that is not supported. If it works, it works, but
don't file a bug report of it breaks, kind of thing.

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal

Re: musl libc C99 compliance

<sg8mg9$lv9$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
 by: Andrey Tarasevich - Thu, 26 Aug 2021 18:28 UTC

On 8/26/2021 7:15 AM, Visda Vokhshoori wrote:
>
> on the https://www.musl-libc.org/faq.html says it requires a C99 compliant compiler with support for gcc style __asm__ statement.
>
> is the the musl libc source C99 compliant?
>

Um... The page you linked (and quoted) clearly says that the library
source relies on `__asm__` statement, which basically makes the question
of "compliance" rather moot. By nature, `__asm__` statements are heavily
implementation-dependent.

Anyway, it is hard to address such questions without knowing what
triggered them. Why do you even care about compliance of a library
source? Standard library source is not required to be compliant to
anything. Only its external specification is.

--
Best regards,
Andrey Tarasevich

Re: musl libc C99 compliance

<27992797-57f1-48a9-8c4f-f791a359153fn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
 by: Malcolm McLean - Sat, 28 Aug 2021 12:00 UTC

On Thursday, 26 August 2021 at 15:15:09 UTC+1, visda.vo...@gmail.com wrote:
> Hello, all,
>
> on the https://www.musl-libc.org/faq.html says it requires a C99 compliant compiler with support for gcc style __asm__ statement.
>
> is the the musl libc source C99 compliant?
>
> Have a nice day.
>
The webpage says

For compiling and linking programs against musl, almost any standards-conforming C compiler (even pre-C99) should work.

So the interface is a conservative subset of C89, designed to work with practically any C compiler.
However to compile musl itself you will need a C99 compiler. Once you've got the binary, the linker will
link it, and you don't need to worry about what the source to the binary looked like.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor