# Program too big

**URL:** <https://forum.makecode.com/t/program-too-big/13765>\
**Category:** micro:bit\
**Tags:** extension\
**Created:** [May 25, 2022, 4:57pm UTC](https://forum.makecode.com/t/program-too-big/13765 "2022-05-25T16:57:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kunkka](https://avatars.discourse-cdn.com/v4/letter/k/eada6e/32.png) [@kunkka](https://forum.makecode.com/u/kunkka)\
**Post date:** [May 25, 2022, 4:57pm UTC](https://forum.makecode.com/t/program-too-big/13765/1 "2022-05-25T16:57:55Z")

</div>

I want to drive the LCD, then I used a big array to store ASCII, about 96\*12 numbers, then I got the “program too big” error, I was thinking if there is a way to store this array in ROM ? please help me

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [May 25, 2022, 5:18pm UTC](https://forum.makecode.com/t/program-too-big/13765/2 "2022-05-25T17:18:26Z")

</div>

Declaring a large array leads to really inefficient code generation, which is probably what’s causing this error. You can get around this by using a hex buffer! Hex buffers are declared like this:

```auto
hex`00000000`

```

Where 00000000 is replaced by the contents of your array in hex representation. For convenience, here’s a short little script to convert an array into a hex buffer and print it out in the console:

> **[array to hex](https://makecode.microbit.org/00676-13008-23588-72612)**
>
> Made with ❤️ in Microsoft MakeCode for micro:bit.

---

<div class="post-metadata">

**Author:** ![kunkka](https://avatars.discourse-cdn.com/v4/letter/k/eada6e/32.png) [@kunkka](https://forum.makecode.com/u/kunkka)\
**Post date:** [May 26, 2022, 4:49pm UTC](https://forum.makecode.com/t/program-too-big/13765/3 "2022-05-26T16:49:07Z")

</div>

Thank you very much, I will debug this feature and ask you again if there are problems.  
Another question is, I also made a piece of hardware, how can I add this piece of hardware to the extension?

 ![220526150648](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/7/7a5c1506d84c9b42a1234fe96078efa150024fad.jpeg)

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [May 26, 2022, 4:53pm UTC](https://forum.makecode.com/t/program-too-big/13765/4 "2022-05-26T16:53:31Z")

</div>

See this doc on the requirements for getting an extension approved: [https://makecode.com/extensions/approval](https://makecode.com/extensions/approval)

Once you’ve completed that checklist, you can open a pull request in [pxt-microbit](https://github.com/microsoft/pxt-microbit). Here’s a sample one:

> <https://github.com/microsoft/pxt-microbit/pull/4565>
>
> cc @tangjie133
