[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH master] mescc: Mes C Library: Add crt1, mini.
From: |
Jan Nieuwenhuizen |
Subject: |
Re: [PATCH master] mescc: Mes C Library: Add crt1, mini. |
Date: |
Wed, 03 Jun 2020 08:00:04 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Danny Milosavljevic writes:
> +void
> +_write ()
> +{
> + asm ("SYS_write mov____$i8,%r7");
> + asm ("!8 ldr____%r0,(%fp,+#$i8)");
> + asm ("!12 ldr____%r1,(%fp,+#$i8)");
> + asm ("!16 ldr____%r2,(%fp,+#$i8)");
> + asm ("swi____$0");
> +}
> Hmm, lib/linux/x86-mes-gcc/mini.c has:
> ssize_t _write (int filedes, void const *buffer, size_t size);
Yes, gcc needs a(t least a somewhat) correct prototype!
> Is that the correct prototype?
Yes! MesCC really doesn't care (at the momement), otoh I'm not sure
what being sloppy here brings us? It looks almost as if I had given
it some thought (not wanting to #include or whatever); at least it
could do with some explanation....WDYT?
Otherwise, LGMT :-)
Greetings,
Janneke
--
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | AvatarĀ® http://AvatarAcademy.com