HOME
FORUMS
RESOURCES & TOOLS
ARTICLES
ONLINE STORE
ABOUT US
Advanced search
Computer Support Forums
Software Support
Programming Problems
Topic:
C Programmers Help !
September 09, 2010, 02:02:50 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
September 09, 2010, 02:02:50 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Featured Sites:
Ink Cartridges
|
Computer Power Supply
|
Outlook PST Repair
|
military computer financing
|
Information security management
|
fields data recovery scam
|
Compatible
Samsung Toner
Cartridges |
Mac & PC Computer Repair in Atlanta
|
::
Add your site
::
News
We now offer MyTechSupport.ca
Merchandise
! Every purchase goes towards maintaining our site.
Thank you for supporting MyTechSupport.ca!
Demo
0 Members and 1 Guest are viewing this topic.
Pages:
[
1
]
Author
Topic: C Programmers Help ! (Read 1074 times)
merfik
Newbie
Karma: +0/-0
Offline
Posts: 3
C Programmers Help !
«
on:
August 24, 2007, 12:35:46 PM »
Alright, here's the beef. I'm basically writing a program for a PIC18 microcontroller. There's just one problem, my main asm file, it compiles C into assembly and then turns it into bytecode, is too big to be loaded into memory. So I'm getting compiler errors telling me the section is too long. It's not a very high end microcontroller, but I'm still pretty surprised I hit its limit so fast.
My program has a copious amount of char arrays, size 17. I did some removal of the parts of the program concerning the char arrays. I then declared them before the main method. It didn't compile. When I removed them, it compiled.
I was thinking of splitting up some of the methods into another file. How do I do that ? How do I access said external methods from the class file containing the main method.
Alternatively, a simple way to fix this would be to tell me a way to store some char arrays in another file. I would also need to know how to access them using the main method file.
I was schooled in Java, so I'm not sure how to go about doing this in C. Normally I would make a constructor for an object in that external file. Make that keep all the arrays. Then use dot operators to access the variables I want from the new object.
I'm quite sure I surpassed the maximum size for one such C file. The microcontroller will definitely accept more C files, it has 2 MBs of program space.
Logged
Bay area cosmetic surgeon
poker room
types of secured loans
Agivearrade
Newbie
Karma: +0/-0
Offline
Gender:
Posts: 4
C Programmers Help
«
Reply #1 on:
December 20, 2009, 08:10:48 AM »
How can I do beeter with computer programming such as C. Im takingmy first class in computer science and I love the subject matter. I just have difficulty prgramming. How can I master computer programming?
Thank you in advance for your wonderful advice.
Logged
Pages:
[
1
]
Jump to:
Please select a destination:
-----------------------------
Internet & Network Support
-----------------------------
=> Internet & Email
=> Networking Problems
=> Security & Viruses
=> Webmasters : Web Design Problems
=> Wireless Devices Problems
-----------------------------
Hardware Support
-----------------------------
=> Hardware Devices Problems
=> Looking for Drivers!
=> Overclocking, Cooling & Modding Problems
=> Portable Devices
-----------------------------
Software Support
-----------------------------
=> Application Problems
=> Database Problems
=> Game Problems
=> Operating Systems : Linux / Unix
=> Operating Systems : Mac OS
=> Operating Systems : Microsoft
=> Programming Problems
=> Software & Drivers Updates
-----------------------------
Computer Related Discussions
-----------------------------
=> Buying Advice
=> Computer Health & Ergonomics
=> Computer Humor
=> General Discussions
=> IT Careers and Training
=> Show & Tell
=> Tips & Tricks
-----------------------------
Forum Support
-----------------------------
=> Feedback
=> Forum Related Questions