Executing CODE from SD card

While experimenting with arduino I noticed that simple LED sketches could take more than 2K of flash, so I was looking for a way to increase program memory.

That still leaves nearly 30K of flash/program memory.

Is there any other arduino compatible derivative which has larger flash and similar I/O as MEGA328 ?

The Mega and the Due.