Brad Bird's film adapts Ted Hughes's 1968 children's novel, published in the United States as The Iron Giant and credited on screen. The adaptation keeps the boy, the eating of farm machinery and the giant's self sacrifice, and replaces the space dragon of the book's second half with 1957 Maine and a Cold War the novel does not have. https://en.wikipedia.org/wiki/The_Iron_Man_(novel)
