Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7037247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:31:18+00:00 2026-05-28T01:31:18+00:00

I have developed a MonoTouch iPhone application. Currently it works by parsing a large

  • 0

I have developed a MonoTouch iPhone application.
Currently it works by parsing a large amount of xml data that generates all of my objects.
I tried to improve the start speed by serialising these objects and storing in an sql lite database. But this was actually slower.
What I have done instead is to write a program that pre-parses this xml and in turn writes out class files that can simply be compiled and the objects instantiated at runtime.

This works and is a huge speed increase, but I can only compile a some of the set before the gcc compiler fails: I get a

“FATAL:Section too large, can’t encode r_address”

error where it can’t encode an address into 24-bits of scattered relocation entry

Can anyone shed some light on this for me please? I don’t understand compilers particularly but I would love to know if this is possible or if there’s something I am doing wrong.

Each and every individual class does compile, it is only when I compile a number of them that it fails.
There is no specific number of classes that causes it to fail, nor length of function, instead it seems to be caused by the sheer size of application code.

Thanks for your time,
Liam

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T01:31:18+00:00Added an answer on May 28, 2026 at 1:31 am

    This is already a known issue.

    What you can do is to try to reduce the final size of your application. There are a couple of things you can do to try to reduce the application size:

    • Enable linking (project properties – iPhone Build – Linker behaviour: Link all assemblies)

    • Avoid generics with value types, since it will cause code to be emitted once per value type (so if you for instance use a List<int> and a List<long>, the List code will be emitted twice – for bigger generic types this can make a big difference). Note that all class types will share the code (so List<string> and List<object> will use the same code), so use generics with class types freely.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have a WinForms application that downloads large amounts of data from a
I have developed a PHP application that processes relatively large text files, and stores
I have developed a grails application that stores a great deal of information. Currently,
I have developed a test for iPod/iPhone (with MonoTouch if that is relevant) that
I have successfully developed a small iPhone+Monotouch (latest version) application with Monodevelop 2.8, which
I have developed a multithreaded web application that runs in Tomcat. But I cannot
I have an application that uses Monotouch/C# on the Mac as the front end,
I have developed a web application that uses the jQuery DateTimePicker by Trent Richardson
I have developed an application that is to be run on android Tablet as
I have got an application developed with Monotouch 4.0.7. This app is running on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.