1200. To be a term of acquainted address, initially usually implying impatience, c.1400; that's why in all probability its use as an interjection of shock or emphasis, considering that Center English but In particular common from early 20c. I'm sufficiently old to keep in mind when "guy" or perhaps the combining for "-guy" was just popular usage