From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PHpLw-00034W-Lg for garchives@archives.gentoo.org; Mon, 15 Nov 2010 03:03:32 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D19BAE06F7 for ; Mon, 15 Nov 2010 03:03:31 +0000 (UTC) Received: from mail.osagesoftware.com (osagesoftware.com [216.144.204.42]) by pigeon.gentoo.org (Postfix) with ESMTP id 6DBFAE0683 for ; Mon, 15 Nov 2010 02:10:25 +0000 (UTC) Received: from osage.osagesoftware.com (osage.osagesoftware.com [192.168.1.10]) by mail.osagesoftware.com (Postfix) with ESMTP id 9A15E7BCD4 for ; Mon, 15 Nov 2010 02:10:24 +0000 (UTC) Date: Sun, 14 Nov 2010 21:10:24 -0500 From: David Relson To: gentoo-embedded@lists.gentoo.org Subject: [gentoo-embedded] OT: HiTech-C question Message-ID: <20101114211024.350fb808@osage.osagesoftware.com> Organization: Osage Software Systems, Inc. X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; x86_64-unknown-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@lists.gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 5d6c6fd6-1d16-4092-b4ef-1be5557948ff X-Archives-Hash: f7215a36fd3592079a17307ddca620de Greetings, I'm using HiTech-C for the first time. Given a program that references undefined functions, the linker complains (and rightfully so!) Given a program with _no_ undefined functions, the linker gets stuck in Though I've been programming in C for many years, I'm new to HiTech-C. My efforts to build a program are failing, likely because I've overlooked a simple detail. I running 64-bit gentoo on an AMD Phenom. Here's my test program: #include void main(void) { unsigned char var; unsigned char *addr; addr = (unsigned char *)0x20; } I use the following command to build /opt/hitech/picc/9.80/bin/picc -N32 --chip=16C926 -Oprog prog.c The compiler prints the following: Licensed for evaluation purposes only. This licence will expire on Tue, 28 Dec 2010. HI-TECH C Compiler for PIC10/12/16 MCUs (PRO Mode) V9.80 Copyright (C) 2010 Microchip Technology Inc. Then it runs forever, keeping a processor 100% busy cpu. Output of 'ps' shows the following: ... 0:00 /opt/hitech/picc/9.80/bin/picc -N32 --chip=16C926 -Oprog E 0 ... 32:48 cgpic --edf=/opt/hitech/picc/9.80/dat/en_msgs.txt -Og9s -w9 -PM Additionally, I've loaded MPLAB IDE and HiTech-C 9.80 using wine and get the same result with that combo. Any suggestions as to what's wrong? Thank you. David