From mboxrd@z Thu Jan 1 00:00:00 1970 From: dewar@gnat.com (Robert Dewar) To: dewar@gnat.com, neil@daikokuya.co.uk Cc: gcc@gcc.gnu.org, jason@redhat.com Subject: Re: Language-independent functions-as-trees representation Date: Fri, 23 Aug 2002 18:20:00 -0000 Message-id: <20020824012004.498A6F28D6@nile.gnat.com> X-SW-Source: 2002-08/msg01502.html > Figuring out line numbers is painful if all you have is a character > offset into the preprocessed source, or something similar. Why? All you need is a sorted line table and you do binary searches. This is the way things are done in GNAT, and it works just fine.