tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] [PATCH v2] arm-asm: Add vcvt


From: Jan Nieuwenhuizen
Subject: Re: [Tinycc-devel] [PATCH v2] arm-asm: Add vcvt
Date: Sat, 13 Feb 2021 10:56:25 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Danny Milosavljevic writes:

Hello!

> as of commit 24c94fff09ea21f2e70b575256824e4648124aad on tinycc mob, arm-asm
> is finished.  I've added all that one could reasonably want in
> lowest-common-denominator ARM assembly.

Oh my, that's...Amazing!!

Now...it would be grand if we can get GNU Mes in to build this, or if we
really must, patch "bootstrappable-tinycc"*); then we can remove
fake-asm snippets hacks like these

--8<---------------cut here---------------start------------->8---
#if !__TINYC__
void
_start ()
{
  asm (
       "mov    r0,#0\n\t"
       "mov    %0,r0\n"
       : "=r" (__stdin)
       : //no inputs ""
       );
[..]
#else //__TINYC__
void
_start ()
{
  int *in = &__stdin;
  int *out = &__stdout;
  int *err = &__stderr;
  char ***env = &environ;

  /* environ = argv + argc + 1 */
  __asm__ (".int 0xe59b000c\n"); //ldr   r0, [fp, #12]
  __asm__ (".int 0xe28b1010\n"); //add   r1, fp, #16
[..]
--8<---------------cut here---------------end--------------->8---

from the "Reduced Binary Seed" **) bootstrap; as the above does not
really count as "source code": The GPL defines this as the preferred
form of the work for making changes in it.

Greetings,
Janneke

*) https://gitlab.com/janneke/tinycc/-/tree/mes-0.23
**) https://guix.gnu.org/en/blog/2020/guix-further-reduces-bootstrap-seed-to-25/

-- 
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | AvatarĀ® http://AvatarAcademy.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]