11 LONG INTEGERS
In this chapter, you’ll add a new type: long. This is a signed integer type, just like int; the only difference between the two types is the range of values they hold. You’ll also add an explicit cast operation, which converts a value to a different type.
Because long is so similar to the int type we already support, we won’t need to add many new assembly or TACKY instructions or implement complicated type casting logic. Instead, we’ll focus on laying the groundwork we’ll need for the rest of Part II. We’ll ...
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.