From 71606f5ff847260aaa557331dfddf250eb2a040b Mon Sep 17 00:00:00 2001 From: TimothyLottes Date: Sat, 12 Nov 2016 21:13:03 -0500 Subject: [PATCH] Add files via upload --- 20140809.html | 22 ++++++++++++++++++++++ index.html | 1 + 2 files changed, 23 insertions(+) create mode 100644 20140809.html diff --git a/20140809.html b/20140809.html new file mode 100644 index 0000000..8642683 --- /dev/null +++ b/20140809.html @@ -0,0 +1,22 @@ +
+

20140809 - Strict Aliasing

+
+ + +Strict aliasing from a different perspective. +Full disclosure, +for the most part at home I've moved on from C to my own language +which is similar to an assembler +running from a language similar to Color Forth. +So my bias is more towards performance and minimalism.
+
+When working in C, outside of work, I adopted labeling all pointers as either "restrict" or "volatile" (using the defines below to keep syntax tight). If needed reuse of a value read from a volatile pointer, it is read into a local variable. When working this way, strict aliasing makes no difference.
+
+ +#define R_ restrict
+#define V_ volatile

+ + +
+ + diff --git a/index.html b/index.html index 40f8239..e0c1733 100644 --- a/index.html +++ b/index.html @@ -183,6 +183,7 @@ and attempting to restore what I can from prior lost images. 20140819 - Scanlines
20140816 - Vintage Programming
20140814 - HRAA And Coverage and Related Topics
+20140809 - Strict Aliasing

20140730 - Scanlines and Vintage TVs
20140723 - Body Hacking Running on Oil