Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!rpi!ispd-newsserver!ism.isc.com!b1!ico!auto-trol!marbru From: marbru@auto-trol.com (Martin Brunecky) Newsgroups: comp.windows.x.motif Subject: Re: UIL -> C converter Message-ID: <1991Jun14.150955.25245@auto-trol.com> Date: 14 Jun 91 15:09:55 GMT References: <7061@bwdls58.bnr.ca> Sender: news@auto-trol.com Organization: Auto-trol Technology Corporation Lines: 33 Nntp-Posting-Host: server_1-gw In article <7061@bwdls58.bnr.ca> sami@bwdlh312.bnr.ca (Sami Boulos) writes: > >Is there a tool that converts UIL to C code? >The reason I ask this question is to permit me to write UIL code, >convert it to C, and compile the C code with the rest of my >code, instead of having to perform file I/O in reading a .uid >file. > No, I doubt there is an UIL->C converter. For the obvious reason: it is the worst thing to do. However, some of the new generation UI munglers may be able to read UIL file and spit out either UIL or "C". But. Why to do it ? If you don't like the UIL overhead, just simply use Wcl ! This one adds no runtime overhead - the widget creation behavior/flow is identical to your "C" code (in fact, it IS the C code creating your widgets - Widget Creation Library -). Your UI definition still remains separate from you "C" code, so nothing hardcoded. Yes, you get an overhead of resource file read, but Xt does not ask you and ALWAYS tries to read those resource files, and I have yet to see a (properly defined) X resosurce file that would take a measurable time to read. I clocked 1000 lines/sec on a 2.5 MIPS VAXstation - with no I/O caching (I can't clock on my 16 MIPS DECstation, as I don't have resource file long enough to do any timing). -- =*= Opinions presented here are solely of my own and not those of Auto-trol =*= Martin Brunecky marbru%auto-trol@sunpeaks.central.sun.com (303) 252-2499 (better avoid: marbru@auto-trol.COM ) Auto-trol Technology Corp. 12500 North Washington St., Denver, CO 80241-2404