lkml.org 
[lkml]   [2020]   [Oct]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: Control Dependencies vs C Compilers
Date
>   My suggestion as an alternative is to use assembler instead.
> That way you can guarantee that you get the instructions you
> want in the order that you want them. It should be fairly
> straightforward to create a macro or inline function that
> contains the necessary code and this can be done once and
> then used wherever the functionality is required.

C exists because K&R got fed up of writing pdp-11 assembler.
Compared to some modern ones it is nice and easy to write
(I'm old enough to have used pdp-11.)

You can't put control dependencies inside C asm statements.

David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)
\
 
 \ /
  Last update: 2020-10-06 17:38    [W:0.052 / U:0.664 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site