Well, perhaps i may recommend you an excellent course into "C system
programming". IMHO it's basic knowledge, nobody can succeed without. This
guy is a highly talented teacher, IMHO.

Example lesson, worth watching at first:
http://cs-education.github.io/sys/#/chapter/5/section/0/activity/0

Here the overview: http://cs-education.github.io/sys/#lessons

The book: https://github.com/angrave/SystemProgramming/wiki

The online IDE and compiler: http://cs-education.github.io/sys/#VM

I am absolutely sure, that after you will have completed these short
lessons each, your little "problem" with replacing a C macro by C code also
will disappear magically. ;-)

Best regards, Guido Stepken

Am Dienstag, 14. April 2020 schrieb C K Kashyap <ckkash...@gmail.com>:
> Thanks Guido,
> I was not able TCC to align the functions though :(
> Regards,
> Kashyap
> On Mon, Apr 13, 2020 at 2:05 PM Guido Stepken <gstep...@gmail.com> wrote:
>>
>> That's kind of tabulator for structs of data in memory .. only of real
use for handing over to vector instructions (SSE, AVX2, AVX512 ... ARM
NEON). It's a GCC thing, not a C standard! ;-)
>>
>> https://stackoverflow.com/questions/7895869/cross-platform-alignx-macro
>>
>> Hope, that helps.
>>
>> Am Montag, 13. April 2020 schrieb C K Kashyap <ckkash...@gmail.com>:
>> > Hi all,
>> > I just noticed that TCC was mentioned in another thread so I wanted to
share my experience with it. I had tried to build miniPicoLisp with it but
unfortunately, TCC does not seem to generate aligned functions :( it did
not seem to honor  __attribute__((aligned))
>> > Does anyone else have any experience with using TCC to build
miniPicoLIsp or PicoLisp for that matter?
>> > Regards,
>> > Kashyap

Reply via email to