How's does one specify a particular PIC when compiling? I've looked all through 
the manual, but I can't seem to find it. I'm trying to compile a test program 
for the 18F458 (actually a 4580, but I haven't even gotten that far yet), but 
the output asm file says "list      p=18f452". That looks a bit off to me. What 
am I missing?

Here's my test file:
---
#define pic18f458
#include <pic18fregs.h>

void main()
{
}
---

And the command line:
---
19:03 [EMAIL PROTECTED]/devel/pic/test_sdcc>sdcc -c test.c
---

And a bit of the output:
---
-;--------------------------------------------------------
; File Created by SDCC : FreeWare ANSI-C Compiler
; Version 2.6.0 #4309 (Aug  2 2006)
; This file generated Wed Aug  2 19:04:39 2006
;--------------------------------------------------------
; PIC16 port for the Microchip 16-bit core micros
;--------------------------------------------------------
        list    p=18f452

        radix dec
--

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to