Description

12 UNSIGNED INTEGERS

In this chapter, you’ll implement the unsigned counterparts to our two signed integer types: unsigned int and unsigned long. You’ll extend the usual arithmetic conversions to handle unsigned integers and implement casts between signed and unsigned types. On the backend, you’ll use a few new assembly instructions to do unsigned integer arithmetic.

In Chapter 11, we focused on inferring and tracking type information in general; now we’ll be able to build on that work to add new types with relatively little ...

Get Writing a C Compiler now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.