Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!seismo!mcvax!enea!chalmers!cthce!tropp From: tropp@cthce.UUCP Newsgroups: comp.lang.c Subject: Re: Long Branches Message-ID: <109@cthce.UUCP> Date: Tue, 10-Feb-87 05:10:32 EST Article-I.D.: cthce.109 Posted: Tue Feb 10 05:10:32 1987 Date-Received: Mon, 16-Feb-87 01:58:12 EST References: <3950007@nucsrl.UUCP> <449@hadron.UUCP> Reply-To: tropp@cthce.UUCP (Ulf Tropp) Organization: Dept. of Comp. Eng., Chalmers, Goeteborg, Sweden Lines: 21 In article <449@hadron.UUCP> jsdy@hadron.UUCP (Joseph S. D. Yao) writes: |In article <3950007@nucsrl.UUCP> ram@nucsrl.UUCP (Raman Renu) writes: || I have a problem in using the C compiler and VAX assembler in our local ||4.3BSD(VAX) site. I have a program which has a huge(>900lines) switch ||statement. ||The assembler chokes on (>32K long) long branches. | |Speaking of which, I'd like to promote the use of the form: | if (...) { | ... | } else if (...) { | ... | } else if (...) { | ... ... | } From 4.2BSD(VAX) as man page: -J Use long branches to resolve jumps when byte- displacement branches are insufficient. This must be used when a compiler-generated assembly contains branches of more than 32k bytes.