On Jan 21, 2009, at 9:49 AM, Chris Lattner wrote: > > On Jan 21, 2009, at 4:11 AM, Sebastian Redl wrote: > >> >> On Tue, 20 Jan 2009 23:21:04 -0800, Ted Kremenek <[email protected]> >> wrote: >>> Chris, >>> >>> I don't think that this is portable. This assumes that both the >>> host >>> and the PTH file encode integers in little endian format. >>> >> >> Are PTH files supposed to be portable? Aren't they just generated on >> the >> target system anyway? > > They are intended to be portable. We want a well-defined file format, > and we want them to be generatable on one system and sent (e.g.) over > NFS to another system. PTH files currently do not encode any > architectural details of the host or target into them. On the mac, > one use of this is that you can use one PTH file for both "-arch i386" > and "-arch ppc" builds. >
Interesting (I didn't realize the format was designed to be portable). Is the format designed to be useable across clang releases? Don't imagine this is critical... Curious, snaroff > -Chris > _______________________________________________ > cfe-commits mailing list > [email protected] > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
