Messages in this thread | | | From | David Laight <> | Subject | RE: Control Dependencies vs C Compilers | Date | Tue, 6 Oct 2020 15:37:24 +0000 |
| |
> 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)
| |