1 |
Greetings, |
2 |
|
3 |
I'm using HiTech-C for the first time. Given a program that references |
4 |
undefined functions, the linker complains (and rightfully so!) Given a |
5 |
program with _no_ undefined functions, the linker gets stuck in Though |
6 |
I've been programming in C for many years, I'm new to HiTech-C. My |
7 |
efforts to build a program are failing, likely because I've overlooked |
8 |
a simple detail. |
9 |
|
10 |
I running 64-bit gentoo on an AMD Phenom. |
11 |
|
12 |
Here's my test program: |
13 |
|
14 |
#include <htc.h> |
15 |
|
16 |
void main(void) |
17 |
{ |
18 |
unsigned char var; |
19 |
unsigned char *addr; |
20 |
addr = (unsigned char *)0x20; |
21 |
} |
22 |
|
23 |
I use the following command to build |
24 |
|
25 |
/opt/hitech/picc/9.80/bin/picc -N32 --chip=16C926 -Oprog prog.c |
26 |
|
27 |
The compiler prints the following: |
28 |
|
29 |
Licensed for evaluation purposes only. |
30 |
This licence will expire on Tue, 28 Dec 2010. |
31 |
HI-TECH C Compiler for PIC10/12/16 MCUs (PRO Mode) V9.80 |
32 |
Copyright (C) 2010 Microchip Technology Inc. |
33 |
|
34 |
Then it runs forever, keeping a processor 100% busy cpu. |
35 |
|
36 |
Output of 'ps' shows the following: |
37 |
|
38 |
... 0:00 /opt/hitech/picc/9.80/bin/picc -N32 --chip=16C926 -Oprog E 0 |
39 |
|
40 |
... 32:48 cgpic --edf=/opt/hitech/picc/9.80/dat/en_msgs.txt -Og9s -w9 |
41 |
-PM |
42 |
|
43 |
Additionally, I've loaded MPLAB IDE and HiTech-C 9.80 using wine and |
44 |
get the same result with that combo. |
45 |
|
46 |
Any suggestions as to what's wrong? |
47 |
|
48 |
Thank you. |
49 |
|
50 |
David |