Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!ll-xn!mit-eddie!kent-state.UUCP!eb From: eb@kent-state.UUCP (Eric Benson) Newsgroups: comp.emacs Subject: gnuemacs on a Sun-4? Message-ID: <8709152122.AA25209@EDDIE.MIT.EDU> Date: Tue, 15-Sep-87 16:27:22 EDT Article-I.D.: EDDIE.8709152122.AA25209 Posted: Tue Sep 15 16:27:22 1987 Date-Received: Thu, 17-Sep-87 06:19:24 EDT Sender: daemon@eddie.MIT.EDU Lines: 22 We have gotten Emacs running on a Sun-4. The main thing you need that isn't obvious is a definition for _start in crt0.c. Here is the one we used: asm(".seg \"text\""); asm(".global __start"); asm("__start:"); asm("mov 0, %fp"); asm("ld [%sp + 64], %o0"); asm("add %sp, 68, %o1"); asm("sll %o0, 2, %o2"); asm("add %o2, 4, %o2"); asm("add %o1, %o2, %o2"); asm("sethi %hi(_environ), %o3"); asm("st %o2, [%o3+%lo(_environ)]"); asm("andn %sp, 7, %sp"); asm("call _main"); asm("sub %sp, 24, %sp"); asm("call _exit"); asm("nop"); asm("call __exit"); asm("nop");